Skip to content

Commit 169323e

Browse files
authored
Merge pull request #5415 from skymkmk/pr-fix-incorrect-vision-model-judgement
fix: remove the visual model judgment method that checks if the model…
2 parents 07c6fe5 + 6bb01bc commit 169323e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/client/platforms/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class ChatGPTApi implements LLMApi {
197197
};
198198

199199
// add max_tokens to vision model
200-
if (visionModel && modelConfig.model.includes("preview")) {
200+
if (visionModel) {
201201
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
202202
}
203203
}

0 commit comments

Comments
 (0)