diff --git a/src/main/java/git/tracehub/codereview/action/openai/OpenAiModel.java b/src/main/java/git/tracehub/codereview/action/openai/OpenAiModel.java index def9a69..0f80853 100644 --- a/src/main/java/git/tracehub/codereview/action/openai/OpenAiModel.java +++ b/src/main/java/git/tracehub/codereview/action/openai/OpenAiModel.java @@ -55,7 +55,7 @@ public String completion() throws Exception { ) ).readObject(); final String completion = response.getJsonArray("choices") - .getFirst() + .get(0) .asJsonObject() .getString("text"); Logger.info(