Commit eae3d87e authored by 赵灿灿's avatar 赵灿灿

修改配置信息

parent 854104e8
Pipeline #21111 passed with stages
in 3 minutes and 13 seconds
......@@ -359,7 +359,7 @@ public class LangChainController {
{
lineCotent.append(data);
String sendData=data.replace("attachment#[]#attachment","").replace("source#[]#source","")
.replace("<br />", "\n").replace("#","").replace("*","");
.replace("#","").replace("*","");
emitter.send(SseEmitter.event().data(sendData), MediaType.parseMediaType("application/json; charset=UTF-8"));
if(!sendData.startsWith("SUGGEST["))
content.append(sendData);
......@@ -369,7 +369,6 @@ public class LangChainController {
}
}
emitter.complete(); // 流结束
logger.info(lineCotent.toString());
} catch (Exception e) {
emitter.completeWithError(e);
logger.info(e.getMessage());
......@@ -379,6 +378,7 @@ public class LangChainController {
if (connection != null) {
connection.disconnect();
}
logger.info(lineCotent.toString());
}
}).start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment