fixes max context size for nu-gpt4-turbo

This commit is contained in:
nai-degen 2024-01-25 14:07:42 -06:00
parent 5e646b1c86
commit e6dc4475e6
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ export const validateContextSize: RequestPreprocessor = async (req) => {
let modelMax: number;
if (model.match(/gpt-3.5-turbo-16k/)) {
modelMax = 16384;
} else if (model.match(/gpt-4-1106(-preview)?/)) {
} else if (model.match(/gpt-4-turbo(-preview)?$/)) {
modelMax = 131072;
} else if (model.match(/gpt-4-(0125|1106)(-preview)?$/)) {
modelMax = 131072;
} else if (model.match(/^gpt-4(-\d{4})?-vision(-preview)?$/)) {
modelMax = 131072;