Skip to content

Commit cd9580e

Browse files
authored
fix: [OpenAI] Update models list of OpenAI models. (#444)
* fix models list of OpenAI models. * Update release notes --------- Co-authored-by: Jonas Israel <[email protected]>
1 parent 8c5531b commit cd9580e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### ✨ New Functionality
1414

1515
- [OpenAI] [Add convenience for tool definition, parsing function calls and tool execution](https://sap.github.io/ai-sdk/docs/java/foundation-models/openai/chat-completion#executing-tool-calls)
16+
- [OpenAI] Added the following new models: `o4-mini`, `o3`, `gpt-4.1`, `gpt-4.1-nano`, and `gpt-4.1-mini`
1617
- [Orchestration] Added new model DeepSeek-R1: `OrchestrationAiModel.DEEPSEEK_R1`
1718
- [Orchestration] [Tool execution fully enabled](https://sap.github.io/ai-sdk/docs/java/spring-ai/orchestration#tool-calling)
1819

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiModel.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@ public record OpenAiModel(@Nonnull String name, @Nullable String version) implem
7676
public static final OpenAiModel TEXT_EMBEDDING_3_SMALL =
7777
new OpenAiModel("text-embedding-3-small", null);
7878

79+
/** Azure OpenAI GPT-o4 Mini model */
80+
public static final OpenAiModel O4_MINI = new OpenAiModel("o4-mini", null);
81+
82+
/** Azure OpenAI GPT-o3 model */
83+
public static final OpenAiModel O3 = new OpenAiModel("o3", null);
84+
85+
/** Azure OpenAI GPT-4.1 model */
86+
public static final OpenAiModel GPT_41 = new OpenAiModel("gpt-4.1", null);
87+
88+
/** Azure OpenAI GPT-4.1-nano model */
89+
public static final OpenAiModel GPT_41_NANO = new OpenAiModel("gpt-4.1-nano", null);
90+
91+
/** Azure OpenAI GPT-4.1-mini model */
92+
public static final OpenAiModel GPT_41_MINI = new OpenAiModel("gpt-4.1-mini", null);
93+
7994
/**
8095
* Azure OpenAI Text Embedding ADA 002 model
8196
*

0 commit comments

Comments
 (0)