File tree Expand file tree Collapse file tree 2 files changed +3
-3
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 2 files changed +3
-3
lines changed 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