Skip to content

Commit 2e77d44

Browse files
renaming
1 parent 1d39c23 commit 2e77d44

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class OrchestrationUnitTest {
6969
"max_tokens", 50,
7070
"temperature", 0.1,
7171
"frequency_penalty", 0,
72-
"presence_penalty", 0))
73-
.withModelVersion("latest");
72+
"presence_penalty", 0));
7473
private final Function<String, InputStream> fileLoader =
7574
filename -> Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream(filename));
7675

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void testCompletion() {
3535
@Test
3636
void testTemplate() {
3737
assertThat(controller.config.getLlmConfig()).isNotNull();
38-
final var model = controller.config.getLlmConfig().getModelName();
38+
final var modelName = controller.config.getLlmConfig().getModelName();
3939

4040
final var response = controller.template();
4141
final var result = response.getOriginalResponse();
@@ -48,7 +48,7 @@ void testTemplate() {
4848
assertThat(llm.getId()).isNotEmpty();
4949
assertThat(llm.getObject()).isEqualTo("chat.completion");
5050
assertThat(llm.getCreated()).isGreaterThan(1);
51-
assertThat(llm.getModel()).isEqualTo(model);
51+
assertThat(llm.getModel()).isEqualTo(modelName);
5252
var choices = llm.getChoices();
5353
assertThat(choices.get(0).getIndex()).isZero();
5454
assertThat(choices.get(0).getMessage().getContent()).isNotEmpty();
@@ -62,7 +62,7 @@ void testTemplate() {
6262
var orchestrationResult = ((LLMModuleResultSynchronous) result.getOrchestrationResult());
6363
assertThat(orchestrationResult.getObject()).isEqualTo("chat.completion");
6464
assertThat(orchestrationResult.getCreated()).isGreaterThan(1);
65-
assertThat(orchestrationResult.getModel()).isEqualTo(model);
65+
assertThat(orchestrationResult.getModel()).isEqualTo(modelName);
6666
choices = orchestrationResult.getChoices();
6767
assertThat(choices.get(0).getIndex()).isZero();
6868
assertThat(choices.get(0).getMessage().getContent()).isNotEmpty();

0 commit comments

Comments
 (0)