Merge pull request #4564 from MrrDrr/gpt4v_remove_max_tokens

remove max_tokens from the official version of gpt4-turbo
This commit is contained in:
DeanYao 2024-04-25 13:01:21 +08:00 committed by GitHub
commit 506c17a093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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