Merge branch 'master' of github.com:Mintplex-Labs/anything-llm

This commit is contained in:
timothycarambat 2024-01-03 15:44:37 -08:00
commit 8001f69454

View File

@ -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;
} }