mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-16 21:33:40 +00:00
修复异常场景,请求链接无法关闭问题
This commit is contained in:
@@ -98,6 +98,8 @@ public abstract class AbstractStreamingChatService implements IChatService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
SseMessageUtils.sendMessage(userId, "对话出错:" + e.getMessage());
|
||||||
|
SseMessageUtils.completeConnection(userId, tokenValue);
|
||||||
log.error("{}请求失败:{}", getProviderName(), e.getMessage(), e);
|
log.error("{}请求失败:{}", getProviderName(), e.getMessage(), e);
|
||||||
}
|
}
|
||||||
return emitter;
|
return emitter;
|
||||||
|
|||||||
Reference in New Issue
Block a user