gpt-4o replace

This commit is contained in:
DirkSchlossmacher 2024-08-08 12:36:28 +02:00
parent 0ed79aa814
commit d53e642438

View File

@ -179,11 +179,12 @@ export class ChatGPTApi implements LLMApi {
"gpt-4-0125-preview",
"gpt-4-1106-vision",
"gpt-4-1106-vision-preview",
"gpt-4o"
];
// Check if the current model is in the list of models to replace
const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4o" : modelConfig.model;
const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4o-2024-08-06" : modelConfig.model;
let requestPayload: RequestPayload | DalleRequestPayload;