Skip to content

Commit fe492d0

Browse files
TillK17I750911bot-sdk-js
authored
chore: Update available modellist (#384)
* update of OpenAiModel.java * update of OrchestrationAiModel.java * renaming o-series to OPENAI_O... * applying deprecation to OpenAiModel * applying deprecation to OrchestrationAiModel * Formatting * aligning javadoc * marked DALL_E as internal --------- Co-authored-by: I750911 <[email protected]> Co-authored-by: SAP Cloud SDK Bot <[email protected]>
1 parent 01bcfac commit fe492d0

File tree

2 files changed

+64
-27
lines changed

2 files changed

+64
-27
lines changed

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

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,53 +16,57 @@
1616
*/
1717
public record OpenAiModel(@Nonnull String name, @Nullable String version) implements AiModel {
1818

19-
/** Azure OpenAI dall-e-3 image generate model */
19+
/** internal [Azure OpenAI dall-e-3 model] */
2020
public static final OpenAiModel DALL_E_3 = new OpenAiModel("dall-e-3", null);
2121

2222
/**
23-
* Azure OpenAI GPT-3.5 Turbo chat completions model
23+
* Azure OpenAI GPT-3.5 Turbo model
2424
*
25-
* @deprecated This model is not usable anymore. It is retired on AI Core since 2024-11-17.
25+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
26+
* suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}.
2627
*/
2728
@Deprecated public static final OpenAiModel GPT_35_TURBO = new OpenAiModel("gpt-35-turbo", null);
2829

2930
/**
30-
* Azure OpenAI GPT-3.5 Turbo chat completions model
31+
* Azure OpenAI GPT-3.5 Turbo model
3132
*
32-
* @deprecated This model is not usable anymore. It is retired on AI Core since 2025-02-22.
33+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-22. The
34+
* suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}.
3335
*/
3436
@Deprecated
3537
public static final OpenAiModel GPT_35_TURBO_1025 = new OpenAiModel("gpt-35-turbo-0125", null);
3638

3739
/**
38-
* Azure OpenAI GPT-3.5 Turbo chat completions model
40+
* Azure OpenAI GPT-3.5 Turbo model
3941
*
40-
* @deprecated This model is not usable anymore. It is retired on AI Core since 2025-02-13.
42+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
43+
* suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}.
4144
*/
4245
@Deprecated
4346
public static final OpenAiModel GPT_35_TURBO_16K = new OpenAiModel("gpt-35-turbo-16k", null);
4447

45-
/** Azure OpenAI GPT-4 chat completions model */
48+
/** Azure OpenAI GPT-4 model */
4649
public static final OpenAiModel GPT_4 = new OpenAiModel("gpt-4", null);
4750

4851
/**
49-
* Azure OpenAI GPT-4-32k chat completions model
52+
* Azure OpenAI GPT-4 model
5053
*
51-
* @deprecated This model will not be usable anymore on 2025-05-30.
54+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-05-13. The
55+
* suggested replacement model is {@link OpenAiModel#GPT_4O}.
5256
*/
5357
@Deprecated public static final OpenAiModel GPT_4_32K = new OpenAiModel("gpt-4-32k", null);
5458

55-
/** Azure OpenAI GPT-4o chat completions model */
59+
/** Azure OpenAI GPT-4o model */
5660
public static final OpenAiModel GPT_4O = new OpenAiModel("gpt-4o", null);
5761

58-
/** Azure OpenAI GPT-4o Mini chat completions model */
62+
/** Azure OpenAI GPT-4o Mini model */
5963
public static final OpenAiModel GPT_4O_MINI = new OpenAiModel("gpt-4o-mini", null);
6064

61-
/** Azure OpenAI GPT-o3 Mini chat completions model */
62-
public static final OpenAiModel GPT_O3_MINI = new OpenAiModel("o3-mini", null);
65+
/** Azure OpenAI GPT-o3 Mini model */
66+
public static final OpenAiModel O3_MINI = new OpenAiModel("o3-mini", null);
6367

64-
/** Azure OpenAI GPT-o1 chat completions model */
65-
public static final OpenAiModel GPT_O1 = new OpenAiModel("o1", null);
68+
/** Azure OpenAI GPT-o1 model */
69+
public static final OpenAiModel O1 = new OpenAiModel("o1", null);
6670

6771
/** Azure OpenAI Text Embedding 3 Large model */
6872
public static final OpenAiModel TEXT_EMBEDDING_3_LARGE =
@@ -75,7 +79,9 @@ public record OpenAiModel(@Nonnull String name, @Nullable String version) implem
7579
/**
7680
* Azure OpenAI Text Embedding ADA 002 model
7781
*
78-
* @deprecated This model is deprecated on AI Core.
82+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-10-03. The
83+
* suggested replacement models are {@link OpenAiModel#TEXT_EMBEDDING_3_SMALL} and {@link
84+
* OpenAiModel#TEXT_EMBEDDING_3_LARGE}.
7985
*/
8086
@Deprecated
8187
public static final OpenAiModel TEXT_EMBEDDING_ADA_002 =

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

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class OrchestrationAiModel {
4444
/** The version of the model, defaults to "latest". */
4545
String version;
4646

47-
/** IBM Granite 13B chat completions model */
47+
/** IBM Granite 13B Chat model */
4848
public static final OrchestrationAiModel IBM_GRANITE_13B_CHAT =
4949
new OrchestrationAiModel("ibm--granite-13b-chat");
5050

@@ -56,7 +56,13 @@ public class OrchestrationAiModel {
5656
public static final OrchestrationAiModel MIXTRAL_8X7B_INSTRUCT_V01 =
5757
new OrchestrationAiModel("mistralai--mixtral-8x7b-instruct-v01");
5858

59-
/** Meta Llama3 70B Instruct model */
59+
/**
60+
* Meta Llama3 70B Instruct model
61+
*
62+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2024-12-15. The
63+
* suggested replacement model is {@link OrchestrationAiModel#LLAMA3_1_70B_INSTRUCT}.
64+
*/
65+
@Deprecated
6066
public static final OrchestrationAiModel LLAMA3_70B_INSTRUCT =
6167
new OrchestrationAiModel("meta--llama3-70b-instruct");
6268

@@ -99,34 +105,59 @@ public class OrchestrationAiModel {
99105
public static final OrchestrationAiModel NOVA_MICRO =
100106
new OrchestrationAiModel("amazon--nova-micro");
101107

102-
/** Azure OpenAI GPT-3.5 Turbo chat completions model */
108+
/**
109+
* Azure OpenAI GPT-3.5 Turbo model
110+
*
111+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
112+
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
113+
*/
114+
@Deprecated
103115
public static final OrchestrationAiModel GPT_35_TURBO = new OrchestrationAiModel("gpt-35-turbo");
104116

105117
/**
106-
* Azure OpenAI GPT-3.5 Turbo chat completions model
118+
* Azure OpenAI GPT-3.5 Turbo model
107119
*
108-
* @deprecated This model is not usable anymore. It is retired on AI Core since 2025-02-13.
120+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The
121+
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
109122
*/
110123
@Deprecated
111124
public static final OrchestrationAiModel GPT_35_TURBO_16K =
112125
new OrchestrationAiModel("gpt-35-turbo-16k");
113126

114-
/** Azure OpenAI GPT-3.5 Turbo chat completions model */
127+
/**
128+
* Azure OpenAI GPT-3.5 Turbo model
129+
*
130+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-22. The
131+
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}.
132+
*/
133+
@Deprecated
115134
public static final OrchestrationAiModel GPT_35_TURBO_0125 =
116135
new OrchestrationAiModel("gpt-35-turbo-0125");
117136

118-
/** Azure OpenAI GPT-4 chat completions model */
137+
/** Azure OpenAI GPT-4 model */
119138
public static final OrchestrationAiModel GPT_4 = new OrchestrationAiModel("gpt-4");
120139

121-
/** Azure OpenAI GPT-4-32k chat completions model */
140+
/**
141+
* Azure OpenAI GPT-4 model
142+
*
143+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-05-13. The
144+
* suggested replacement model is {@link OrchestrationAiModel#GPT_4O}.
145+
*/
146+
@Deprecated
122147
public static final OrchestrationAiModel GPT_4_32K = new OrchestrationAiModel("gpt-4-32k");
123148

124-
/** Azure OpenAI GPT-4o chat completions model */
149+
/** Azure OpenAI GPT-4o model */
125150
public static final OrchestrationAiModel GPT_4O = new OrchestrationAiModel("gpt-4o");
126151

127-
/** Azure OpenAI GPT-4o-mini chat completions model */
152+
/** Azure OpenAI GPT-4o-mini model */
128153
public static final OrchestrationAiModel GPT_4O_MINI = new OrchestrationAiModel("gpt-4o-mini");
129154

155+
/** Azure OpenAI o1 model */
156+
public static final OrchestrationAiModel OPENAI_O1 = new OrchestrationAiModel("o1");
157+
158+
/** Azure OpenAI o3-mini model */
159+
public static final OrchestrationAiModel OPENAI_O3_MINI = new OrchestrationAiModel("o3-mini");
160+
130161
/** Google Cloud Platform Gemini 1.0 Pro model */
131162
public static final OrchestrationAiModel GEMINI_1_0_PRO =
132163
new OrchestrationAiModel("gemini-1.0-pro");

0 commit comments

Comments
 (0)