Skip to content

Commit f8ad432

Browse files
feat: [Orchestration] Added Gemini 2.0 models (#429)
* feat: [Orchestration] Added Gemini 2.0 models * claude 👴
1 parent d5ecdc9 commit f8ad432

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

docs/release_notes.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88

99
### 🔧 Compatibility Notes
1010

11-
-
11+
- [Orchestration] Deprecated `OrchestrationAiModel.GEMINI_1_0_PRO`. The replacements are either:
12+
- `OrchestrationAiModel.GEMINI_2_0_FLASH`
13+
- `OrchestrationAiModel.GEMINI_2_0_FLASH_LITE`.
1214

1315
### ✨ New Functionality
1416

1517
- [Orchestration] [Added support to locally test prompt template files](https://sap.github.io/ai-sdk/docs/java/orchestration/chat-completion#locally-test-a-prompt-template)
18+
- [Orchestration] Added new models:
19+
- `OrchestrationAiModel.CLAUDE_3_7_SONNET`
20+
- `OrchestrationAiModel.GEMINI_2_0_FLASH`
21+
- `OrchestrationAiModel.GEMINI_2_0_FLASH_LITE`
1622

1723
### 📈 Improvements
1824

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public class OrchestrationAiModel {
8686
public static final OrchestrationAiModel CLAUDE_3_5_SONNET =
8787
new OrchestrationAiModel("anthropic--claude-3.5-sonnet");
8888

89+
/** Anthropic Claude 3.7 Sonnet model */
90+
public static final OrchestrationAiModel CLAUDE_3_7_SONNET =
91+
new OrchestrationAiModel("anthropic--claude-3.7-sonnet ");
92+
8993
/** Amazon Titan Text Lite model */
9094
public static final OrchestrationAiModel TITAN_TEXT_LITE =
9195
new OrchestrationAiModel("amazon--titan-text-lite");
@@ -158,7 +162,14 @@ public class OrchestrationAiModel {
158162
/** Azure OpenAI o3-mini model */
159163
public static final OrchestrationAiModel OPENAI_O3_MINI = new OrchestrationAiModel("o3-mini");
160164

161-
/** Google Cloud Platform Gemini 1.0 Pro model */
165+
/**
166+
* Google Cloud Platform Gemini 1.0 Pro model
167+
*
168+
* @deprecated This model is deprecated on AI Core with a planned retirement on 2025-04-09. The
169+
* suggested replacement model is {@link OrchestrationAiModel#GEMINI_2_0_FLASH} or {@link
170+
* OrchestrationAiModel#GEMINI_2_0_FLASH_LITE}.
171+
*/
172+
@Deprecated
162173
public static final OrchestrationAiModel GEMINI_1_0_PRO =
163174
new OrchestrationAiModel("gemini-1.0-pro");
164175

@@ -170,6 +181,14 @@ public class OrchestrationAiModel {
170181
public static final OrchestrationAiModel GEMINI_1_5_FLASH =
171182
new OrchestrationAiModel("gemini-1.5-flash");
172183

184+
/** Google Cloud Platform Gemini 2.0 Flash model */
185+
public static final OrchestrationAiModel GEMINI_2_0_FLASH =
186+
new OrchestrationAiModel("gemini-2.0-flash");
187+
188+
/** Google Cloud Platform Gemini 2.0 Flash-Lite model */
189+
public static final OrchestrationAiModel GEMINI_2_0_FLASH_LITE =
190+
new OrchestrationAiModel("gemini-2.0-flash-lite");
191+
173192
OrchestrationAiModel(@Nonnull final String name) {
174193
this(name, Map.of(), "latest");
175194
}

0 commit comments

Comments
 (0)