Auto commit

上级 b92fe627
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册