Skip to content

Commit

Permalink
feat(#128): json path
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 10, 2024
1 parent 3aa4dd7 commit 007f81a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public String completion() throws Exception {
final String completion = response.getJsonArray("choices")
.get(0)
.asJsonObject()
.getString("text");
.getJsonObject("message")
.getString("content")
.replaceAll("\n", "");
Logger.info(
this,
"Completion result: %s",
Expand Down

0 comments on commit 007f81a

Please sign in to comment.