mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
openai.ts aktualisieren
modelConfig.
This commit is contained in:
parent
4762a08e4e
commit
2e6ab1385c
@ -224,7 +224,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
|
|
||||||
// add max_tokens to vision model
|
// add max_tokens to vision model
|
||||||
if (visionModel && finalModel.includes("preview")) {
|
if (visionModel && finalModel.includes("preview")) {
|
||||||
requestPayload["max_tokens"] = Math.max(finalModel.max_tokens, 4000);
|
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user