From f76e5ca52e98d678d5a1a5189a3b391e1da32757 Mon Sep 17 00:00:00 2001 From: 622ee496dfef6c4fdb84cccd <622ee496dfef6c4fdb84cccd@devide> Date: Tue, 23 May 2023 08:07:00 +0000 Subject: [PATCH] Tue May 23 08:07:00 UTC 2023 inscode --- src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.vue b/src/App.vue index a9bc0bd..3b166ee 100644 --- a/src/App.vue +++ b/src/App.vue @@ -82,6 +82,10 @@ export default { dialog.text = ''; }, onmessage: (msg) => { + if(msg.data == "[DONE]"){ + this.loading = false; + return + } const data = JSON.parse(msg.data); const finish_reason = data.choices[0].finish_reason; const finish = finish_reason === 'stop' || finish_reason === 'length'; -- GitLab