mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
patch gpt-4-turbo token allowance for Azure model (#514)
This commit is contained in:
parent
237c544ebc
commit
ceadc8d467
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ function validAzureURL(input = "") {
|
|||
function validOpenAiTokenLimit(input = "") {
|
||||
const tokenLimit = Number(input);
|
||||
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 null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue