Update openai.adoc

i don't see any generate(message) method in ChatClient interface in  package org.springframework.ai.chat;
This commit is contained in:
EnggAdda
2024-01-28 10:26:50 +05:30
committed by Christian Tzolov
parent 4ec78f8d34
commit 9381ab609f

View File

@@ -63,7 +63,7 @@ public class ChatController {
@GetMapping("/open-ai/generate")
public Map generate(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {
return Map.of("generation", chatClient.generate(message));
return Map.of("generation", chatClient.call(message));
}
@GetMapping("/open-ai/generateStream")