Commit 411313f6 by zhangxingmin

push

parent 048c02c8
......@@ -65,10 +65,10 @@ public class ApiAiStreamController {
delta = choice.getMessage().getContent();
}
}
// 发送标准 SSE 事件,包含 event 字段便于前端区分
// 关键修改:每个 delta 后添加换行符,确保表格等 Markdown 结构正确
return ServerSentEvent.<String>builder()
.event("message")
.data(delta)
.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