Skip to content

Commit

Permalink
patch gpt-4-turbo token allowance for Azure model (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat authored Jan 2, 2024
1 parent 237c544 commit ceadc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/helpers/updateENV.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ceadc8d

Please sign in to comment.