Skip to content

Commit

Permalink
fix : check
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Dec 21, 2023
1 parent a965b8c commit de2337f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public ResponseEntity<GenerateChatResponse> execute(ChatRequest request, HttpSer
.build()))
.build(), "Bearer " + chatGPTProperties.getApiKey());

System.out.println(request.getText() + " " + response.getChoices().get(0).getMessage().getContent());

chatRepository.save(
Chat.builder()
.user(user)
Expand Down

0 comments on commit de2337f

Please sign in to comment.