Skip to content

Commit

Permalink
- 1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic2014 committed Sep 13, 2024
1 parent a40d783 commit 9f03a8f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ new CreateChatCompletionRequest()

## Version

### 1.12.1

- New: gpt_o1 models have been added to the GptModel.class

### 1.12.0

- Update: The URL field in all requests has been changed to the `final` type.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<url>https://github.com/WhiteMagic2014/gpt-magic.git</url>
<groupId>io.github.whitemagic2014</groupId>
<artifactId>gpt-magic</artifactId>
<version>1.12.0</version>
<version>1.12.1</version>

<developers>
<developer>
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/github/WhiteMagic2014/gptApi/GptModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,27 @@ public class GptModel {
* 128,000 tokens Up to Oct 2023
*/
public final static String gpt_4o = "gpt-4o";

/**
* gpt-4o-2024-05-13
* gpt-4o currently points to this version.
* 128,000 tokens Up to Oct 2023
*/
public final static String gpt_4o_0513 = "gpt-4o-2024-05-13";

/**
* gpt-4o-2024-08-06
* Latest snapshot that supports Structured Outputs
* 128,000 tokens Up to Oct 2023
*/
public final static String gpt_4o_0806 = "gpt-4o-2024-08-06";

/**
* Dynamic model continuously updated to the current version of GPT-4o in ChatGPT.
*/
public final static String gpt_4o_latest = "chatgpt-4o-latest";


// GPT-4o mini
/**
* GPT-4o mini
Expand All @@ -39,6 +53,20 @@ public class GptModel {
public final static String gpt_4o_mini_0718 = "gpt-4o-mini-2024-07-18";


// o1-preview and o1-mini
/**
* The o1 series of large language models are trained with reinforcement learning to perform complex reasoning.
* o1 models think before they answer, producing a long internal chain of thought before responding to the user.
* <p>
* o1-preview: reasoning model designed to solve hard problems across domains.
* o1-mini: faster and cheaper reasoning model particularly good at coding, math, and science.
*/
public final static String gpt_o1_preview = "o1-preview";
public final static String gpt_o1_preview_0912 = "o1-preview-2024-09-12";
public final static String gpt_o1_mini = "o1-mini";
public final static String gpt_o1_mini_0912 = "o1-mini-2024-09-12";


// GPT-4 and GPT-4 Turbo
/**
* gpt-4-turbo
Expand Down

0 comments on commit 9f03a8f

Please sign in to comment.