File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
orchestration/src/test/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -69,18 +69,16 @@ void testDpiMaskingConfig() {
6969 void testLLMConfig () {
7070 Map <String , Object > params = Map .of ("foo" , "bar" );
7171 String version = "2024-05-13" ;
72- OrchestrationAiModel aiModel = GPT_4O .withModelParams (params ).withModelVersion (version );
72+ OrchestrationAiModel aiModel = GPT_4O .withParams (params ).withVersion (version );
7373 var config = new OrchestrationModuleConfig ().withLlmConfig (aiModel );
7474
7575 assertThat (config .getLlmConfig ()).isNotNull ();
76- assertThat (config .getLlmConfig ().getModelName ()).isEqualTo (GPT_4O .getModelName ());
76+ assertThat (config .getLlmConfig ().getModelName ()).isEqualTo (GPT_4O .getName ());
7777 assertThat (config .getLlmConfig ().getModelParams ()).isEqualTo (params );
7878 assertThat (config .getLlmConfig ().getModelVersion ()).isEqualTo (version );
7979
80- assertThat (GPT_4O .getModelParams ())
81- .withFailMessage ("Static models should be unchanged" )
82- .isEmpty ();
83- assertThat (GPT_4O .getModelVersion ())
80+ assertThat (GPT_4O .getParams ()).withFailMessage ("Static models should be unchanged" ).isEmpty ();
81+ assertThat (GPT_4O .getVersion ())
8482 .withFailMessage ("Static models should be unchanged" )
8583 .isEqualTo ("latest" );
8684 }
You can’t perform that action at this time.
0 commit comments