Skip to content

Commit

Permalink
Merge pull request #5415 from skymkmk/pr-fix-incorrect-vision-model-j…
Browse files Browse the repository at this point in the history
…udgement

fix: remove the visual model judgment method that checks if the model…
Dogtiti authored Sep 13, 2024
2 parents 07c6fe5 + 6bb01bc commit 169323e
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
@@ -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);
}
}

0 comments on commit 169323e

Please sign in to comment.