Merge pull request #5415 from skymkmk/pr-fix-incorrect-vision-model-judgement

fix: remove the visual model judgment method that checks if the model…
This commit is contained in:
Dogtiti 2024-09-13 13:57:37 +08:00 committed by GitHub
commit 169323e238
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);
}
}