Commit 0b27fae0 authored by 赵灿灿's avatar 赵灿灿

修改替换特殊字符

parent ca5e19d3
Pipeline #23170 passed with stages
in 4 minutes and 14 seconds
...@@ -1057,7 +1057,9 @@ public class LangChainController { ...@@ -1057,7 +1057,9 @@ public class LangChainController {
} else { } else {
lineCotent.append(data); lineCotent.append(data);
String sendData = data.replace("attachment#[]#attachment", "").replace("source#[]#source", "") String sendData = data.replace("attachment#[]#attachment", "").replace("source#[]#source", "")
.replace("#", "").replace("*", "").replace("^", " "); .replace("#", "").replace("*", "")
.replace("^", " ");
sendData=sendData.replace("$", "#");
emitter.send(SseEmitter.event().data(sendData), MediaType.parseMediaType("application/json; charset=UTF-8")); emitter.send(SseEmitter.event().data(sendData), MediaType.parseMediaType("application/json; charset=UTF-8"));
if (!sendData.startsWith("SUGGEST[")) if (!sendData.startsWith("SUGGEST["))
content.append(sendData); content.append(sendData);
......
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