This commit is contained in:
shaoyongjun 2024-05-16 19:12:56 +08:00
parent 76b14c0832
commit 0072ede4b1

View File

@ -135,7 +135,7 @@
// 结束时的回调。1.将消息添加到历史消息中 2.将等待状态设置为false // 结束时的回调。1.将消息添加到历史消息中 2.将等待状态设置为false
() => {addMessage("assistant", htmlSpanElement.innerHTML); waiting = false}, () => {addMessage("assistant", htmlSpanElement.innerHTML); waiting = false},
// 发生错误时的回调 // 发生错误时的回调
(error) => {console.log(error)} (error) => {console.log(error); waiting = false}
); );
} }