From 9d5d211f6f836a85da0617d22a94c5580b134d79 Mon Sep 17 00:00:00 2001 From: chenrui Date: Tue, 9 Jan 2024 11:35:30 +0800 Subject: [PATCH] =?UTF-8?q?text-davinci-003=20=E6=A8=A1=E5=9E=8B=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E5=9C=A82024=E5=B9=B41=E6=9C=884=E6=97=A5=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E5=BA=9F=E5=BC=83,=E5=B0=86=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=BAgpt-3.5-turbo-instruct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/unfbx/chatgpt/entity/completions/Completion.java | 2 +- src/test/java/com/unfbx/chatgpt/OpenAiClientTest.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/unfbx/chatgpt/entity/completions/Completion.java b/src/main/java/com/unfbx/chatgpt/entity/completions/Completion.java index b63f855..73b4995 100644 --- a/src/main/java/com/unfbx/chatgpt/entity/completions/Completion.java +++ b/src/main/java/com/unfbx/chatgpt/entity/completions/Completion.java @@ -121,7 +121,7 @@ public long tokens() { @Getter @AllArgsConstructor public enum Model { - DAVINCI_003("text-davinci-003"), + DAVINCI_003("gpt-3.5-turbo-instruct"), DAVINCI_002("text-davinci-002"), DAVINCI("davinci"), ; diff --git a/src/test/java/com/unfbx/chatgpt/OpenAiClientTest.java b/src/test/java/com/unfbx/chatgpt/OpenAiClientTest.java index 5b18ae6..c26e12f 100644 --- a/src/test/java/com/unfbx/chatgpt/OpenAiClientTest.java +++ b/src/test/java/com/unfbx/chatgpt/OpenAiClientTest.java @@ -248,8 +248,6 @@ public void completionsV3() { Completion q = Completion.builder() .prompt(question) .stop(Arrays.asList(" Human:", " Bot:")) - - .echo(true) .build(); CompletionResponse completions = v2.completions(q); String text = completions.getChoices().get(0).getText();