fix: remove the visual model judgment method that checks if the model name contains 'preview' from the openai api to prevent models like o1-preview from being classified as visual models

This commit is contained in:
skymkmk 2024-09-13 12:56:28 +08:00
parent 07c6fe5975
commit 6bb01bc564
No known key found for this signature in database
GPG Key ID: 6F4CA5A97C68BD71
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export class ChatGPTApi implements LLMApi {
};
// add max_tokens to vision model
if (visionModel && modelConfig.model.includes("preview")) {
if (visionModel) {
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
}
}