mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
feat: return endpoint config from server
This commit is contained in:
parent
b687ab30ed
commit
60be4f12b7
4 changed files with 25 additions and 13 deletions
|
|
@ -38,7 +38,7 @@ const router = createBrowserRouter([
|
|||
const App = () => {
|
||||
const [user, setUser] = useRecoilState(store.user);
|
||||
const setIsSearchEnabled = useSetRecoilState(store.isSearchEnabled);
|
||||
const setEndpointsFilter = useSetRecoilState(store.endpointsFilter);
|
||||
const setEndpointsConfig = useSetRecoilState(store.endpointsConfig);
|
||||
|
||||
useEffect(() => {
|
||||
// fetch if seatch enabled
|
||||
|
|
@ -63,7 +63,7 @@ const App = () => {
|
|||
withCredentials: true
|
||||
})
|
||||
.then(({ data }) => {
|
||||
setEndpointsFilter(data);
|
||||
setEndpointsConfig(data);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue