Last active
February 3, 2023 21:59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AllArgsConstructor | |
@RestController | |
public class OpenaiRestController { | |
ChatgptService chatgptService; | |
@PostMapping("/sendPrompt") | |
public Answer sendPrompt(@RequestBody String prompt) throws Exception { | |
return chatgptService.sendPrompt(prompt); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment