mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
⚓ refactor(loadConfigModels): Stricter Default Model Fallback (#2239)
* chore: add TEndpoint type/typedef * refactor(loadConfigModels.spec): stricter default model matching (fails with current impl.) * refactor(loadConfigModels): return default models on endpoint basis and not fetch basis * refactor: rename `uniqueKeyToNameMap` to `uniqueKeyToEndpointsMap` for clarity
This commit is contained in:
parent
0a8118deed
commit
dec7879cc1
4 changed files with 36 additions and 16 deletions
|
|
@ -150,6 +150,8 @@ export const endpointSchema = z.object({
|
|||
customOrder: z.number().optional(),
|
||||
});
|
||||
|
||||
export type TEndpoint = z.infer<typeof endpointSchema>;
|
||||
|
||||
export const azureEndpointSchema = z
|
||||
.object({
|
||||
groups: azureGroupConfigsSchema,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue