mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-10 00:58:27 +08:00
fix no max_tokens in payload when the vision model name does not contain 'vision'.
This commit is contained in:
@@ -190,7 +190,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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user