fix: use official system message by default

Fixing a typo in the default system message which sometimes causes
weird problems, including failure to retrieve certain information.
Additionally, using the official knowledge cutoff seems to help.
pull/425/head
Yule Hou 2023-03-04 00:04:39 +08:00 zatwierdzone przez GitHub
rodzic e65699ed24
commit dc8bcdee20
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -78,7 +78,7 @@ export class ChatGPTAPI {
if (this._systemMessage === undefined) {
const currentDate = new Date().toISOString().split('T')[0]
this._systemMessage = `You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possiboe.\nCurrent date: ${currentDate}\n`
this._systemMessage = `You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\nKnowledge cutoff: 2021-09-01\nCurrent date: ${currentDate}`
}
this._maxModelTokens = maxModelTokens