Commit c229959c authored by yangyw's avatar yangyw

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

parents 05301276 81a9efd4
......@@ -594,8 +594,6 @@ public class AppChatCompletionService {
return webClient.post().uri(dsApiBase).accept(MediaType.TEXT_EVENT_STREAM).bodyValue(reqBody.toJSONString()).exchangeToFlux(r -> r.bodyToFlux(String.class))
.mapNotNull(v -> {
JSONObject json = JSONObject.parseObject(v);
System.out.println(v);
String type = json.getString("type");
if(Objects.equals(type, "error")) {
thoughtContent[0] = json.getJSONObject("error").getString("message");
......
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