From 56bb1600777320dee91e5ebe91fd2dc92a967eb8 Mon Sep 17 00:00:00 2001 From: magic chen <418379149@qq.com> Date: Thu, 9 Nov 2023 19:37:38 +0800 Subject: [PATCH] - remove Deprecated apis --- src/main/java/com/github/WhiteMagic2014/DemoClass.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/github/WhiteMagic2014/DemoClass.java b/src/main/java/com/github/WhiteMagic2014/DemoClass.java index 7d1ecf7..a9a35e9 100755 --- a/src/main/java/com/github/WhiteMagic2014/DemoClass.java +++ b/src/main/java/com/github/WhiteMagic2014/DemoClass.java @@ -10,7 +10,6 @@ import com.github.WhiteMagic2014.gptApi.Chat.pojo.ChatFunction; import com.github.WhiteMagic2014.gptApi.Chat.pojo.ChatMessage; import com.github.WhiteMagic2014.gptApi.Chat.pojo.ChatTool; -import com.github.WhiteMagic2014.gptApi.Edits.CreateEditRequest; import com.github.WhiteMagic2014.gptApi.GptModel; import com.github.WhiteMagic2014.gptApi.Images.CreateImageRequest; import com.github.WhiteMagic2014.gptApi.Images.pojo.OpenAiImage; @@ -52,12 +51,6 @@ public static void main(String[] args) { // send without stream model String result2 = (String) demo2.sendForChoices().get(0).getMessage().getContent(); - // Edits - JSONObject demo3 = new CreateEditRequest() - .input("What day of the wek is it?") - .instruction("Fix the spelling mistakes") - .send(); - // create images List demo4 = new CreateImageRequest()