From aeeba0889384b38a4c6dd4111e63d3eff8f54d12 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 23 Apr 2025 11:30:49 +0800 Subject: [PATCH] Update chatgpt-api.js --- utils/openai/chatgpt-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/openai/chatgpt-api.js b/utils/openai/chatgpt-api.js index 25924dd..31dbfb1 100644 --- a/utils/openai/chatgpt-api.js +++ b/utils/openai/chatgpt-api.js @@ -88,7 +88,7 @@ var ChatGPTAPI = /** @class */ (function () { this._apiBaseUrl = apiBaseUrl; this._debug = !!debug; this._fetch = fetch; - this._completionParams = __assign({ model: CHATGPT_MODEL, temperature: 1, top_p: 1.0, presence_penalty: 1.0 }, completionParams); + this._completionParams = __assign({ model: CHATGPT_MODEL, temperature: 1, top_p: 1.0 }, completionParams); this._systemMessage = systemMessage; if (this._systemMessage === undefined) { var currentDate = new Date().toISOString().split('T')[0];