fix:【AI 大模型】fetchEventSource 失败时,无限重试的问题

This commit is contained in:
YunaiV
2025-05-04 09:39:43 +08:00
parent 47c2e74256
commit 49e5fc3ee8
3 changed files with 8 additions and 2 deletions

View File

@ -462,6 +462,8 @@ const doSendMessageStream = async (userMessage: ChatMessageVO) => {
(error) => {
message.alert(`对话异常! ${error}`)
stopStream()
// 需要抛出异常,禁止重试
throw error
},
() => {
stopStream()