mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-14 05:33:42 +08:00
fix md format
This commit is contained in:
@@ -23,7 +23,7 @@ public class AiController {
|
||||
public Flux<String> chat(Principal principal, @RequestBody String userMessage) {
|
||||
Sinks.Many<String> sink = Sinks.many().unicast().onBackpressureBuffer();
|
||||
TokenStream chat = deepSeekAiService.chat(principal.getName(), userMessage);
|
||||
chat.onPartialResponse(sink::tryEmitNext)
|
||||
chat.onPartialResponse(text -> sink.tryEmitNext(text.replace(" ", "␣").replace("\t", "⇥")))
|
||||
.onCompleteResponse(
|
||||
r -> {
|
||||
sink.tryEmitComplete();
|
||||
|
||||
Reference in New Issue
Block a user