|
|
|
@@ -158,7 +158,7 @@ public class LlmWebSocketListener extends WebSocketListener { |
|
|
|
if (ch != null) { |
|
|
|
//如果answerBuf为空,说明返回了status为2的结果,直接发送给前端 |
|
|
|
if (StringUtils.isEmpty(answerBuf)) { |
|
|
|
JSONObject jo = formatToChannel(answer,responseData.header.status,responseData.header.code); |
|
|
|
JSONObject jo = formatToChannel(answerBuf,responseData.header.status,responseData.header.code); |
|
|
|
logger.info("发送到client:{},id:{},内容:{}",llmContext.getDevId(),ch.id().asLongText(),jo.toJSONString()); |
|
|
|
ch.writeAndFlush(new TextWebSocketFrame(jo.toJSONString())); |
|
|
|
} |
|
|
|
|