File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
sample-code/spring-app/src
main/java/com/sap/ai/sdk/app/controllers
test/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 11package com .sap .ai .sdk .app .controllers ;
22
33import 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 ;
55import static com .sap .ai .sdk .orchestration .OrchestrationAiModel .Parameter .TEMPERATURE ;
66
77import com .sap .ai .sdk .core .AiCoreService ;
3939class 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.
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments