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 9381ab6 commit da12b56Copy full SHA for da12b56
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/clients/openai.adoc
@@ -69,7 +69,7 @@ public class ChatController {
69
@GetMapping("/open-ai/generateStream")
70
public Flux<ChatResponse> generateStream(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {
71
Prompt prompt = new Prompt(new UserMessage(message));
72
- return streamingChatClient.generate(prompt);
+ return streamingChatClient.stream(prompt);
73
}
74
75
----
0 commit comments