diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 30f7415c141..a6f0ab117c3 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -229,7 +229,7 @@ export class ChatGPTApi implements LLMApi { presence_penalty: !isO1 ? modelConfig.presence_penalty : 0, frequency_penalty: !isO1 ? modelConfig.frequency_penalty : 0, top_p: !isO1 ? modelConfig.top_p : 1, - // max_tokens: Math.max(modelConfig.max_tokens, 1024), + max_tokens: Math.max(modelConfig.max_tokens, 1024), // Please do not ask me why not send max_tokens, no reason, this param is just shit, I dont want to explain anymore. };