From 7b2262acc6ce3416e6de8067c54bec112a0dd92e Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 23 Apr 2025 11:26:43 +0800 Subject: [PATCH] fix: temperature --- 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 fe7752d..25924dd 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: 0.8, top_p: 1.0, presence_penalty: 1.0 }, completionParams); + this._completionParams = __assign({ model: CHATGPT_MODEL, temperature: 1, top_p: 1.0, presence_penalty: 1.0 }, completionParams); this._systemMessage = systemMessage; if (this._systemMessage === undefined) { var currentDate = new Date().toISOString().split('T')[0];