Update chatgpt-api.js

This commit is contained in:
ikechan8370 2025-04-23 11:30:49 +08:00 committed by GitHub
parent 7b2262acc6
commit aeeba08893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ var ChatGPTAPI = /** @class */ (function () {
this._apiBaseUrl = apiBaseUrl; this._apiBaseUrl = apiBaseUrl;
this._debug = !!debug; this._debug = !!debug;
this._fetch = fetch; 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; this._systemMessage = systemMessage;
if (this._systemMessage === undefined) { if (this._systemMessage === undefined) {
var currentDate = new Date().toISOString().split('T')[0]; var currentDate = new Date().toISOString().split('T')[0];