From 1721f5454ba89e0c6675afe1edfbbc566067b529 Mon Sep 17 00:00:00 2001 From: 64104061f23fda247c679fa8 <64104061f23fda247c679fa8@devide> Date: Fri, 19 May 2023 08:59:32 +0000 Subject: [PATCH] Auto commit --- src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 9c5ceb1..a9bc0bd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -83,7 +83,8 @@ export default { }, onmessage: (msg) => { const data = JSON.parse(msg.data); - const finish = data.choices[0].finish_reason === 'stop'; + 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) { -- GitLab