add deep seek tool action

This commit is contained in:
Chuck1sn
2025-06-11 10:48:29 +08:00
parent 79d4ced364
commit 81b02e68e7
3 changed files with 20 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ public class AiController {
@PostMapping(value = "/action/execute", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux<String> actionExecute(Principal principal, @RequestBody String userMessage) {
Sinks.Many<String> sink = Sinks.many().unicast().onBackpressureBuffer();
TokenStream chat = aiChatService.actionExecuteWithZhiPu(principal.getName(), userMessage);
TokenStream chat = aiChatService.actionPrecedenceExecuteWith(principal.getName(), userMessage);
chat.onPartialResponse(
(text) -> {
log.debug("ai action partialResponse: {}", text);