Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#4564 from MrrDrr/gpt4v_remove_max_t…
Browse files Browse the repository at this point in the history
…okens

remove max_tokens from the official version of gpt4-turbo
  • Loading branch information
Dean-YZG authored Apr 25, 2024
2 parents 69642fb + dd4648e commit 506c17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 506c17a

Please sign in to comment.