Skip to content

Commit 56eb9d1

Browse files
committed
fix no max_tokens in payload when the vision model name does not contain 'vision'.
1 parent ffe3269 commit 56eb9d1

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
@@ -190,7 +190,7 @@ export class ChatGPTApi implements LLMApi {
190190
};
191191

192192
// add max_tokens to vision model
193-
if (visionModel && modelConfig.model.includes("preview")) {
193+
if (visionModel) {
194194
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
195195
}
196196
}

0 commit comments

Comments
 (0)