mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
Update chatgpt-api.js
This commit is contained in:
parent
7b2262acc6
commit
aeeba08893
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue