mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
🧼 refactor(AppService): Consolidate Logic & Issue more Warnings (#2468)
* chore: bump example config version * refactor(AppService): issue warnings from separate modules where possible * refactor(AppService): consolidate AppService logic to separate modules as much as possible * chore: bump data-provider * chore: remove unn. variable definition * chore: warning wording
This commit is contained in:
parent
de3987cbaf
commit
3d1dec62a4
9 changed files with 231 additions and 149 deletions
|
|
@ -4,6 +4,7 @@ import type {
|
|||
TAzureGroupMap,
|
||||
TAzureModelGroupMap,
|
||||
TValidatedAzureConfig,
|
||||
TAzureConfigValidationResult,
|
||||
} from '../src/config';
|
||||
import { errorsToString, extractEnvVariable, envVarRegex } from '../src/parsers';
|
||||
import { azureGroupConfigsSchema } from '../src/config';
|
||||
|
|
@ -46,10 +47,7 @@ export const conflictingAzureVariables = [
|
|||
},
|
||||
];
|
||||
|
||||
export function validateAzureGroups(configs: TAzureGroups): TValidatedAzureConfig & {
|
||||
isValid: boolean;
|
||||
errors: (ZodError | string)[];
|
||||
} {
|
||||
export function validateAzureGroups(configs: TAzureGroups): TAzureConfigValidationResult {
|
||||
let isValid = true;
|
||||
const modelNames: string[] = [];
|
||||
const modelGroupMap: TAzureModelGroupMap = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue