gpt-4-turbo-preview

This commit is contained in:
DirkSchlossmacher
2024-01-29 11:51:19 +01:00
parent bcd01b773b
commit b0b5e5e9f2
4 changed files with 14 additions and 14 deletions

View File

@@ -103,13 +103,13 @@ export class ChatGPTApi implements LLMApi {
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-turbo-preview",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
];
// Check if the current model is in the list of models to replace
const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4-1106-preview" : modelConfig.model;
const finalModel = modelsToReplace.includes(modelConfig.model) ? "gpt-4-turbo-preview" : modelConfig.model;
const requestPayload = {
messages,