Skip to content

Commit 02636e7

Browse files
feat: [Orchestration] Added MistralAI model (#603)
* feat: [Orchestration] Added MistralAI model * feat: [Orchestration] Added MistralAI model
1 parent 3e07fd2 commit 02636e7

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

docs/release_notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@
4040
+ SAPDocumentTranslationOutputTargetLanguage.create("de-DE"))
4141
.sourceLanguage("en-US")));
4242
```
43+
- [Orchestration] Deprecated models `OrchestrationAiModel.CLAUDE_3_OPUS` and `OrchestrationAiModel.CLAUDE_3_5_SONNET`.
44+
- Replacement are respectively `OrchestrationAiModel.CLAUDE_4_OPUS` and `OrchestrationAiModel.CLAUDE_4_SONNET`.
4345

4446
### ✨ New Functionality
4547

4648
- [Orchestration] Added embedding generation support with new `OrchestrationClient#embed()` methods.
4749
- Added `OrchestrationEmbeddingModel` with `TEXT_EMBEDDING_3_SMALL`, `TEXT_EMBEDDING_3_LARGE`, `AMAZON_TITAN_EMBED_TEXT` and `NVIDIA_LLAMA_32_NV_EMBEDQA_1B` embedding models.
4850
- Introduced `OrchestrationEmbeddingRequest` for building requests fluently and `OrchestrationEmbeddingResponse#getEmbeddingVectors()` to retrieve embeddings.
51+
- [Orchestration] Added new model `OrchestrationAiModel.MISTRAL_MEDIUM_INSTRUCT`.
4952

5053
### 📈 Improvements
5154

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public class OrchestrationAiModel {
6262
public static final OrchestrationAiModel MISTRAL_SMALL_INSTRUCT =
6363
new OrchestrationAiModel("mistralai--mistral-small-instruct");
6464

65+
/** MistralAI Mistral Medium Instruct model */
66+
public static final OrchestrationAiModel MISTRAL_MEDIUM_INSTRUCT =
67+
new OrchestrationAiModel("mistralai--mistral-medium-instruct");
68+
6569
/**
6670
* MistralAI Mixtral 8x7B Instruct v01 model
6771
*
@@ -104,11 +108,23 @@ public class OrchestrationAiModel {
104108
public static final OrchestrationAiModel CLAUDE_3_HAIKU =
105109
new OrchestrationAiModel("anthropic--claude-3-haiku");
106110

107-
/** Anthropic Claude 3 Opus model */
111+
/**
112+
* Anthropic Claude 3 Opus model
113+
*
114+
* @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link
115+
* OrchestrationAiModel#CLAUDE_4_OPUS}.
116+
*/
117+
@Deprecated
108118
public static final OrchestrationAiModel CLAUDE_3_OPUS =
109119
new OrchestrationAiModel("anthropic--claude-3-opus");
110120

111-
/** Anthropic Claude 3.5 Sonnet model */
121+
/**
122+
* Anthropic Claude 3.5 Sonnet model
123+
*
124+
* @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link
125+
* OrchestrationAiModel#CLAUDE_4_SONNET}.
126+
*/
127+
@Deprecated
112128
public static final OrchestrationAiModel CLAUDE_3_5_SONNET =
113129
new OrchestrationAiModel("anthropic--claude-3.5-sonnet");
114130

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiAgenticWorkflowService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public ChatResponse runAgent(@Nonnull final String userInput) {
4848
val options = new OrchestrationChatOptions(config);
4949
options.setToolCallbacks(
5050
List.of(ToolCallbacks.from(new WeatherMethod(), new RestaurantMethod())));
51-
options.setInternalToolExecutionEnabled(true);
5251

5352
// Prompts for the chain workflow
5453
final List<String> systemPrompts =

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ public ChatResponse toolCallingMcp() {
203203
// GPT-4o-mini doesn't work too well with the file system tool, so we use 4o here
204204
val options = new OrchestrationChatOptions(config.withLlmConfig(GPT_4O));
205205
options.setToolCallbacks(List.of(toolCallbackProvider.getToolCallbacks()));
206-
options.setInternalToolExecutionEnabled(true);
207206

208207
val sys =
209208
new SystemMessage(

0 commit comments

Comments
 (0)