Skip to content

Commit f2ec52e

Browse files
committed
Added some new models and deprecated other models as well
1 parent 9ccba37 commit f2ec52e

File tree

2 files changed

+77
-15
lines changed

2 files changed

+77
-15
lines changed

docs/release_notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
As a result, the accessors for fields `OrchestrationModuleConfig.inputTranslationConfig` and `OrchestrationModuleConfig.outputTranslationConfig` now handle the implementing class explicitly.
2020
The same applies to helper methods `DpiMasking#createConfig()` and `MaskingProvider#createConfig()`.
2121
- [Orchestration] `OrchestrationTemplate.withTemplate()` has been deprecated. Please use `OrchestrationTemplate.withTemplateMessages()` instead.
22+
- [Orchestration] Deprecated : `LLAMA3_1_70B_INSTRUCT`, `CLAUDE_3_SONNET`, `TITAN_TEXT_LITE`, `TITAN_TEXT_EXPRESS`, `GPT_4`, `GPT_4_0613`.
23+
-`GPT_4` and `GPT_4_0613` are replaced by : `GPT_40`or `GPT_41`.
24+
- `CLAUDE_3_SONNET` is replaced by `CLAUDE_4_SONNET`.
2225

2326
### ✨ New Functionality
2427

2528
- [Orchestration] Added support for [transforming a JSON output into an entity](https://sap.github.io/ai-sdk/docs/java/orchestration/chat-completion#json_schema)
26-
- [Orchestration] Added new models for `OrchestrationAiModel`: `MISTRAL_SMALL_INSTRUCT`, `GPT_41_MINI`, `GPT_41`, `GPT_41_NANO`
29+
- [Orchestration] Added new models for `OrchestrationAiModel`: `GEMINI_2_5_FLASH`, `GEMINI_2_5_PRO`, `ALEPHALPHA_PHARIA_1_7B_CONTROL`, `OPENAI_O4_MINI`, `CLAUDE_4_OPUS`, `CLAUDE_4_SONNET`, `OPENAI_O3`.
2730

2831
### 📈 Improvements
2932

orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationAiModel.java

Lines changed: 73 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,28 @@ public class OrchestrationAiModel {
6363
/**
6464
* Meta Llama3 70B Instruct model
6565
*
66-
* @deprecated This model is deprecated on AI Core with a planned retirement on 2024-12-15. The
67-
* suggested replacement model is {@link OrchestrationAiModel#LLAMA3_1_70B_INSTRUCT}.
66+
* @deprecated This model is deprecated on AI Core.
6867
*/
6968
@Deprecated
7069
public static final OrchestrationAiModel LLAMA3_70B_INSTRUCT =
7170
new OrchestrationAiModel("meta--llama3-70b-instruct");
7271

73-
/** Meta Llama3.1 70B Instruct model */
72+
/**
73+
* Meta Llama3.1 70B Instruct model
74+
*
75+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-07-30.
76+
*/
77+
@Deprecated
7478
public static final OrchestrationAiModel LLAMA3_1_70B_INSTRUCT =
7579
new OrchestrationAiModel("meta--llama3.1-70b-instruct");
7680

77-
/** Anthropic Claude 3 Sonnet model */
81+
/**
82+
* Anthropic Claude 3 Sonnet model
83+
*
84+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-07-21. The
85+
* suggested replacement model is {@link OrchestrationAiModel#CLAUDE_4_SONNET}.
86+
*/
87+
@Deprecated
7888
public static final OrchestrationAiModel CLAUDE_3_SONNET =
7989
new OrchestrationAiModel("anthropic--claude-3-sonnet");
8090

@@ -94,11 +104,29 @@ public class OrchestrationAiModel {
94104
public static final OrchestrationAiModel CLAUDE_3_7_SONNET =
95105
new OrchestrationAiModel("anthropic--claude-3.7-sonnet");
96106

97-
/** Amazon Titan Text Lite model */
107+
/** Anthropic Claude 4 Opus model */
108+
public static final OrchestrationAiModel CLAUDE_4_OPUS =
109+
new OrchestrationAiModel("anthropic--claude-4-opus");
110+
111+
/** Anthropic Claude 4 Sonnet model */
112+
public static final OrchestrationAiModel CLAUDE_4_SONNET =
113+
new OrchestrationAiModel("anthropic--claude-4-sonnet");
114+
115+
/**
116+
* Amazon Titan Text Lite model
117+
*
118+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-08-15.
119+
*/
120+
@Deprecated
98121
public static final OrchestrationAiModel TITAN_TEXT_LITE =
99122
new OrchestrationAiModel("amazon--titan-text-lite");
100123

101-
/** Amazon Titan Text Express model */
124+
/**
125+
* Amazon Titan Text Express model
126+
*
127+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-08-15.
128+
*/
129+
@Deprecated
102130
public static final OrchestrationAiModel TITAN_TEXT_EXPRESS =
103131
new OrchestrationAiModel("amazon--titan-text-express");
104132

@@ -116,7 +144,7 @@ public class OrchestrationAiModel {
116144
/**
117145
* Azure OpenAI GPT-3.5 Turbo model
118146
*
119-
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
147+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The
120148
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
121149
*/
122150
@Deprecated
@@ -125,8 +153,7 @@ public class OrchestrationAiModel {
125153
/**
126154
* Azure OpenAI GPT-3.5 Turbo model
127155
*
128-
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
129-
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
156+
* @deprecated This model is deprecated on AI Core.
130157
*/
131158
@Deprecated
132159
public static final OrchestrationAiModel GPT_35_TURBO_16K =
@@ -135,15 +162,21 @@ public class OrchestrationAiModel {
135162
/**
136163
* Azure OpenAI GPT-3.5 Turbo model
137164
*
138-
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-22. The
165+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The
139166
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
140167
*/
141168
@Deprecated
142169
public static final OrchestrationAiModel GPT_35_TURBO_0125 =
143170
new OrchestrationAiModel("gpt-35-turbo-0125");
144171

145-
/** Azure OpenAI GPT-4 model */
146-
public static final OrchestrationAiModel GPT_4 = new OrchestrationAiModel("gpt-4");
172+
/**
173+
* Azure OpenAI GPT-4 Turbo model
174+
*
175+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The
176+
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O} or {@link
177+
* OrchestrationAiModel#GPT_41}.
178+
*/
179+
@Deprecated public static final OrchestrationAiModel GPT_4 = new OrchestrationAiModel("gpt-4");
147180

148181
/** Azure OpenAI GPT-4.1-mini model */
149182
public static final OrchestrationAiModel GPT_41_MINI = new OrchestrationAiModel("gpt-4.1-mini");
@@ -157,12 +190,20 @@ public class OrchestrationAiModel {
157190
/**
158191
* Azure OpenAI GPT-4 model
159192
*
160-
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-05-13. The
161-
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O}.
193+
* @deprecated This model is deprecated on AI Core.
162194
*/
163195
@Deprecated
164196
public static final OrchestrationAiModel GPT_4_32K = new OrchestrationAiModel("gpt-4-32k");
165197

198+
/**
199+
* Azure OpenAI GPT-4 version 0613 model
200+
*
201+
* @deprecated This model is deprecated on AI Core.The suggested replacement model is {@link
202+
* OrchestrationAiModel#GPT_4O} or {@link OrchestrationAiModel#GPT_41}.
203+
*/
204+
@Deprecated
205+
public static final OrchestrationAiModel GPT_4_0613 = new OrchestrationAiModel("gpt-4-0613");
206+
166207
/** Azure OpenAI GPT-4o model */
167208
public static final OrchestrationAiModel GPT_4O = new OrchestrationAiModel("gpt-4o");
168209

@@ -175,6 +216,12 @@ public class OrchestrationAiModel {
175216
/** Azure OpenAI o3-mini model */
176217
public static final OrchestrationAiModel OPENAI_O3_MINI = new OrchestrationAiModel("o3-mini");
177218

219+
/** Azure OpenAI o4-mini model */
220+
public static final OrchestrationAiModel OPENAI_O4_MINI = new OrchestrationAiModel("o4-mini");
221+
222+
/** Azure OpenAI o3 model */
223+
public static final OrchestrationAiModel OPENAI_O3 = new OrchestrationAiModel("o3");
224+
178225
/**
179226
* Google Cloud Platform Gemini 1.0 Pro model
180227
*
@@ -202,6 +249,18 @@ public class OrchestrationAiModel {
202249
public static final OrchestrationAiModel GEMINI_2_0_FLASH_LITE =
203250
new OrchestrationAiModel("gemini-2.0-flash-lite");
204251

252+
/** Google Cloud Platform Gemini 2.5 Flash model */
253+
public static final OrchestrationAiModel GEMINI_2_5_FLASH =
254+
new OrchestrationAiModel("gemini-2.5-flash");
255+
256+
/** Google Cloud Platform Gemini 2.5 Pro model */
257+
public static final OrchestrationAiModel GEMINI_2_5_PRO =
258+
new OrchestrationAiModel("gemini-2.5-pro");
259+
260+
/** Alephalpha-pharia-1-7b-control model */
261+
public static final OrchestrationAiModel ALEPHALPHA_PHARIA_1_7B_CONTROL =
262+
new OrchestrationAiModel("alephalpha-pharia-1-7b-control");
263+
205264
/** DeepSeek-R1 */
206265
public static final OrchestrationAiModel DEEPSEEK_R1 =
207266
new OrchestrationAiModel("deepseek-ai--deepseek-r1");

0 commit comments

Comments
 (0)