From b8f4be276d22ff2ad5757b8c8ae82b7dcb4aa237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janik=20Michael=20M=C3=BCller?= <45454768+H0mire@users.noreply.github.com> Date: Fri, 3 May 2024 15:33:11 +0200 Subject: [PATCH] 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. --- .config/ags/services/gpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/services/gpt.js b/.config/ags/services/gpt.js index b19d46702..eae64a32b 100644 --- a/.config/ags/services/gpt.js +++ b/.config/ags/services/gpt.js @@ -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],