mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
refactor: update appConfig access to use endpoints structure across various services
This commit is contained in:
parent
89fb9c7e1c
commit
240e3bd59e
36 changed files with 591 additions and 510 deletions
|
|
@ -111,7 +111,9 @@ const AppService = async () => {
|
|||
if (!Object.keys(config).length) {
|
||||
const appConfig = {
|
||||
...defaultConfig,
|
||||
[EModelEndpoint.agents]: agentsDefaults,
|
||||
endpoints: {
|
||||
[EModelEndpoint.agents]: agentsDefaults,
|
||||
},
|
||||
};
|
||||
await setAppConfig(appConfig);
|
||||
return;
|
||||
|
|
@ -126,7 +128,7 @@ const AppService = async () => {
|
|||
fileConfig: config?.fileConfig,
|
||||
secureImageLinks: config?.secureImageLinks,
|
||||
modelSpecs: processModelSpecs(config?.endpoints, config.modelSpecs, interfaceConfig),
|
||||
...loadedEndpoints,
|
||||
endpoints: loadedEndpoints,
|
||||
};
|
||||
|
||||
await setAppConfig(appConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue