Skip to content

Commit

Permalink
remove max_tokens from the official version of gpt4-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrrDrr committed Apr 24, 2024
1 parent 9b2cb1e commit dd4648e
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 dd4648e

Please sign in to comment.