mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
Object.defineProperty(requestPayload, "max_tokens", {
enumerable: true, configurable: true, writable: true, value: 4096, });
This commit is contained in:
parent
699d6edaab
commit
32444513a7
@ -167,6 +167,12 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
// add max_tokens to vision model
|
// add max_tokens to vision model
|
||||||
if (visionModel) {
|
if (visionModel) {
|
||||||
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
|
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
|
||||||
|
Object.defineProperty(requestPayload, "max_tokens", {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
writable: true,
|
||||||
|
value: 4096,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// value: modelConfig.max_tokens,
|
// value: modelConfig.max_tokens,
|
||||||
|
Loading…
Reference in New Issue
Block a user