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:
committed by
Christian Tzolov
parent
4ec78f8d34
commit
9381ab609f
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user