Update gpt.js - Bugfix

Since a thinking animation is implemented, the "thinking..." string is not necessary anymore. It cause problems displaying answers from chatgpt. My suggestion: Emptying string.
This commit is contained in:
Janik Michael Müller
2024-05-03 15:33:11 +02:00
committed by GitHub
parent 25e5a774e5
commit b8f4be276d
+1 -1
View File
@@ -237,7 +237,7 @@ class GPTService extends Service {
send(msg) {
this._messages.push(new GPTMessage('user', msg, false, true));
this.emit('newMsg', this._messages.length - 1);
const aiResponse = new GPTMessage('assistant', 'thinking...', true, false)
const aiResponse = new GPTMessage('assistant', '', true, false)
const body = {
model: CHAT_MODELS[this._modelIndex],