enforce default model via config.ts

This commit is contained in:
DirkSchlossmacher
2024-08-09 08:45:18 +02:00
parent 2f7e78de18
commit e1ca34fcb4
3 changed files with 5 additions and 2 deletions

View File

@@ -184,7 +184,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-4o-2024-08-06" : modelConfig.model;
const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4o-mini" : modelConfig.model;
let requestPayload: RequestPayload | DalleRequestPayload;