We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd84b75 commit 219cf9aCopy full SHA for 219cf9a
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/zhipuai-chat.adoc
@@ -210,7 +210,7 @@ public class ChatController {
210
return Map.of("generation", this.chatModel.call(message));
211
}
212
213
- @GetMapping("/ai/generateStream")
+ @GetMapping(value = "/ai/generateStream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
214
public Flux<ChatResponse> generateStream(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {
215
var prompt = new Prompt(new UserMessage(message));
216
return this.chatModel.stream(prompt);
0 commit comments