Skip to content

Commit babcddd

Browse files
committed
Fix merge
1 parent a9cc618 commit babcddd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationModuleConfigTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)