mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-18 20:20:11 +01:00
Merge branch 'master' of github.com:Mintplex-Labs/anything-llm
This commit is contained in:
commit
8001f69454
@ -293,7 +293,7 @@ function validAzureURL(input = "") {
|
|||||||
function validOpenAiTokenLimit(input = "") {
|
function validOpenAiTokenLimit(input = "") {
|
||||||
const tokenLimit = Number(input);
|
const tokenLimit = Number(input);
|
||||||
if (isNaN(tokenLimit)) return "Token limit is not a number";
|
if (isNaN(tokenLimit)) return "Token limit is not a number";
|
||||||
if (![4_096, 16_384, 8_192, 32_768].includes(tokenLimit))
|
if (![4_096, 16_384, 8_192, 32_768, 128_000].includes(tokenLimit))
|
||||||
return "Invalid OpenAI token limit.";
|
return "Invalid OpenAI token limit.";
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user