Commit f7e19fe7 authored by yangyw's avatar yangyw

Merge branch 'refs/heads/feature/20241217_收尾' into sandbox

parents c229959c 87338d23
......@@ -593,6 +593,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