Commit 04121ad6 by zhangxingmin

push

parent 411313f6
......@@ -65,10 +65,9 @@ public class ApiAiStreamController {
delta = choice.getMessage().getContent();
}
}
// 关键修改:每个 delta 后添加换行符,确保表格等 Markdown 结构正确
return ServerSentEvent.<String>builder()
.event("message")
.data(delta + "\n") // 添加换行符
.data(delta) // 不要加 \n,让原始内容保持完整
.build();
})
.concatWith(Flux.just(
......
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