mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-12-26 10:05:56 +08:00
Merge remote-tracking branch 'upstream/main' into dev
# Conflicts: # app/components/chat.tsx # app/constant.ts # app/store/access.ts # app/utils/hooks.ts
This commit is contained in:
@@ -135,7 +135,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
|
||||
// console.log("[Request] openai payload: ", requestPayload);
|
||||
// add max_tokens to vision model
|
||||
if (visionModel) {
|
||||
if (visionModel && modelConfig.model.includes("preview")) {
|
||||
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user