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