Skip to content

Commit 8618dcd

Browse files
Merge branch 'main' into orchestration-streaming
# Conflicts: # sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java
2 parents 192db45 + eb664b3 commit 8618dcd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
<wiremock.version>3.10.0</wiremock.version>
6161
<assertj-core.version>3.26.3</assertj-core.version>
6262
<slf4j.version>2.0.16</slf4j.version>
63-
<checkstyle.version>10.20.2</checkstyle.version>
63+
<checkstyle.version>10.21.0</checkstyle.version>
6464
<system-stubs.version>2.1.3</system-stubs.version>
6565
<surefire.version>3.5.2</surefire.version>
66-
<springframework.version>6.2.0</springframework.version>
67-
<dotenv-java.version>3.0.2</dotenv-java.version>
66+
<springframework.version>6.2.1</springframework.version>
67+
<dotenv-java.version>3.1.0</dotenv-java.version>
6868
<mockito.version>5.14.2</mockito.version>
6969
<!-- Formatting -->
7070
<spotless.version>2.43.0</spotless.version>

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.sap.ai.sdk.app.controllers;
22

33
import static com.sap.ai.sdk.app.controllers.OpenAiController.send;
4-
import static com.sap.ai.sdk.orchestration.OrchestrationAiModel.GPT_35_TURBO;
4+
import static com.sap.ai.sdk.orchestration.OrchestrationAiModel.GEMINI_1_5_FLASH;
55
import static com.sap.ai.sdk.orchestration.OrchestrationAiModel.Parameter.TEMPERATURE;
66

77
import com.sap.ai.sdk.core.AiCoreService;
@@ -39,7 +39,7 @@
3939
class OrchestrationController {
4040
private final OrchestrationClient client = new OrchestrationClient();
4141
OrchestrationModuleConfig config =
42-
new OrchestrationModuleConfig().withLlmConfig(GPT_35_TURBO.withParam(TEMPERATURE, 0.0));
42+
new OrchestrationModuleConfig().withLlmConfig(GEMINI_1_5_FLASH.withParam(TEMPERATURE, 0.0));
4343

4444
/**
4545
* Chat request to OpenAI through the Orchestration service with a simple prompt.

sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void testTemplate() {
6868
.isEqualTo("Reply with 'Orchestration Service is working!' in German");
6969
assertThat(result.getAllMessages().get(0).role()).isEqualTo("user");
7070
var llm = (LLMModuleResultSynchronous) response.getModuleResults().getLlm();
71-
assertThat(llm.getId()).isNotEmpty();
71+
assertThat(llm.getId()).isEmpty();
7272
assertThat(llm.getObject()).isEqualTo("chat.completion");
7373
assertThat(llm.getCreated()).isGreaterThan(1);
7474
assertThat(llm.getModel()).isEqualTo(modelName);

0 commit comments

Comments
 (0)