diff --git a/src/App.vue b/src/App.vue index 93805cd4b64fbccd49092303f8b2673a026f7d83..fd82e4501f54ea421198ef3c61be7ee18ee27dac 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){ + + + } } }