From 18a5235497cefd98c1b8f729a7c4593c3969773e Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Tue, 14 May 2024 06:54:13 +0200 Subject: [PATCH] "gpt-4-turbo", replace --- app/client/platforms/openai.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 6285201e5..7a21a335b 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -137,6 +137,7 @@ export class ChatGPTApi implements LLMApi { // Define an array with the model names that should be replaced const modelsToReplace = [ "gpt-4", + "gpt-4-turbo", "gpt-4-32k", "gpt-4-0314", "gpt-4-0613", @@ -150,7 +151,7 @@ export class ChatGPTApi implements LLMApi { ]; // Check if the current model is in the list of models to replace - const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4-turbo" : modelConfig.model; + const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4o" : modelConfig.model; const requestPayload: RequestPayload = { messages,