Skip to content

Commit

Permalink
- remove Deprecated apis
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic2014 committed Nov 9, 2023
1 parent 9064d85 commit 56bb160
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/com/github/WhiteMagic2014/DemoClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<OpenAiImage> demo4 = new CreateImageRequest()
Expand Down

0 comments on commit 56bb160

Please sign in to comment.