Skip to content

Commit 586ea48

Browse files
authored
add gpt-4o (#45)
2 parents a990304 + 9f8f060 commit 586ea48

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/org/devlive/sdk/openai/entity/ChatEntity.java

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public ChatEntityBuilder model(CompletionModel model)
8484
case GPT_4_32K:
8585
case GPT_4_0613:
8686
case GPT_4_32K_0613:
87+
case GPT_4O:
8788
case TEXT_DAVINCI_002:
8889
case TEXT_DAVINCI_003:
8990
case CODE_DAVINCI_002:

src/main/java/org/devlive/sdk/openai/model/CompletionModel.java

+5
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ public enum CompletionModel
134134
null,
135135
32768),
136136

137+
GPT_4O("gpt-4o",
138+
"most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo. Currently points to gpt-4o-2024-05-13",
139+
null,
140+
128000),
141+
137142
CODE_DAVINCI_002("code-davinci-002",
138143
"Optimized for code-completion tasks",
139144
null,

0 commit comments

Comments
 (0)