mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
fix: Avoid Throwing Errors for Unsupported Token Count Endpoints 🪙 (#1356)
This commit is contained in:
parent
561ce8e86a
commit
ff59a2e41d
3 changed files with 12 additions and 4 deletions
|
|
@ -138,6 +138,12 @@ export const supportsFiles = {
|
|||
[EModelEndpoint.assistant]: true,
|
||||
};
|
||||
|
||||
export const supportsBalanceCheck = {
|
||||
[EModelEndpoint.openAI]: true,
|
||||
[EModelEndpoint.azureOpenAI]: true,
|
||||
[EModelEndpoint.gptPlugins]: true,
|
||||
};
|
||||
|
||||
export const visionModels = ['gpt-4-vision', 'llava-13b'];
|
||||
|
||||
export const eModelEndpointSchema = z.nativeEnum(EModelEndpoint);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue