From 4d534e30426686decc457d94b43327841de83503 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:51:20 +0200 Subject: [PATCH] [BUG] Incorrect context size for gpt-4-turbo-0125 #1748 --- public/scripts/openai.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index fd2db18c2..a91351d6b 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -3219,13 +3219,7 @@ function getMaxContextOpenAI(value) { if (oai_settings.max_context_unlocked) { return unlocked_max; } - else if (value.includes('gpt-4-turbo')) { - return max_128k; - } - else if (value.includes('gpt-4-1106')) { - return max_128k; - } - else if (value.includes('gpt-4-vision')) { + else if (value.includes('gpt-4-turbo') || value.includes('gpt-4-1106') || value.includes('gpt-4-0125') || value.includes('gpt-4-vision')) { return max_128k; } else if (value.includes('gpt-3.5-turbo-1106')) {