From a46d66b37c1f06a233dc13b05b8aed927a474e96 Mon Sep 17 00:00:00 2001 From: 6481820c3fb4c850008641af <6481820c3fb4c850008641af@devide> Date: Fri, 9 Jun 2023 07:35:00 +0000 Subject: [PATCH] Fri Jun 9 07:35:00 UTC 2023 inscode --- src/App.vue | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index 93805cd..fd82e45 100644 --- a/src/App.vue +++ b/src/App.vue @@ -98,17 +98,18 @@ export default { const finish_reason = data.choices[0].finish_reason; const finish = finish_reason === 'stop' || finish_reason === 'length'; const content = data.choices[0].delta.content; - - if (finish) { - this.loading = false; - } else if (content) { - const text = content; - for(let i=0;i{ + if (finish) { + this.loading = false; + } else if (content) { + const text = content; + dialog.text += text + + console.log(dialog.text) + + } + },700) }, onerror: (err) => { console.log("error", err); @@ -118,7 +119,10 @@ export default { handleNewChat() { this.dialogs = []; }, - typing + handleTyping(dialog,text){ + + + } } } -- GitLab