From a60ee08a07255fe606ff8be1d0a66f26ff77acd1 Mon Sep 17 00:00:00 2001 From: YINGXINGHUA <127013150+YINGXINGHUA@users.noreply.github.com> Date: Sun, 3 Nov 2024 05:20:28 +0800 Subject: [PATCH] Update openai.ts --- app/client/platforms/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 30f7415c1..a6f0ab117 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. };