mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
Update openai.ts
// add max_tokens to vision model if (visionModel) { Object.defineProperty(requestPayload, "max_tokens", { enumerable: true, configurable: true, writable: true, value: 4096, }); } // value: modelConfig.max_tokens,
This commit is contained in:
parent
1e83c4f8ab
commit
94ea750137
@ -147,10 +147,13 @@ export class ChatGPTApi implements LLMApi {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: modelConfig.max_tokens,
|
||||
value: 4096,
|
||||
});
|
||||
}
|
||||
|
||||
// value: modelConfig.max_tokens,
|
||||
|
||||
|
||||
console.log("[Request] openai payload: ", requestPayload);
|
||||
|
||||
const modelIdentifier = modelConfig.model;
|
||||
|
Loading…
Reference in New Issue
Block a user