Update openai.adoc

fix the streaming snippet method signature
This commit is contained in:
Christian Tzolov
2024-01-28 16:56:22 +01:00
committed by GitHub
parent 9381ab609f
commit da12b56dc7

View File

@@ -69,7 +69,7 @@ public class ChatController {
@GetMapping("/open-ai/generateStream")
public Flux<ChatResponse> generateStream(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {
Prompt prompt = new Prompt(new UserMessage(message));
return streamingChatClient.generate(prompt);
return streamingChatClient.stream(prompt);
}
}
----