From ceadc8d467027ce75f6df7b3942930d16df1adcf Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Tue, 2 Jan 2024 12:49:48 -0800 Subject: [PATCH] patch gpt-4-turbo token allowance for Azure model (#514) --- server/utils/helpers/updateENV.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/helpers/updateENV.js b/server/utils/helpers/updateENV.js index cf572ad0b..0f891f1ba 100644 --- a/server/utils/helpers/updateENV.js +++ b/server/utils/helpers/updateENV.js @@ -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; }