Commit 87338d23 authored by yangyw's avatar yangyw

feature: 去掉多余的日志

parent 81a9efd4
......@@ -591,6 +591,7 @@ public class AppChatCompletionService {
String finalSessionId = sessionId;
return webClient.post().uri(dsApiBase).accept(MediaType.TEXT_EVENT_STREAM).bodyValue(reqBody.toJSONString()).exchangeToFlux(r -> r.bodyToFlux(String.class))
.mapNotNull(v -> {
log.info("ds:{}", v);
JSONObject json = JSONObject.parseObject(v);
String type = json.getString("type");
if(Objects.equals(type, "error")) {
......
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