Skip to content

Commit 8dd1809

Browse files
committed
codestyle
1 parent 4564492 commit 8dd1809

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/OrchestrationService.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,7 @@ public record Translation(
465465
@Nonnull
466466
public OrchestrationChatResponse responseFormatJsonSchema(
467467
@Nonnull final String word, @Nonnull final Class<?> targetType) {
468-
final var configWithGpt4 =
469-
new OrchestrationModuleConfig().withLlmConfig(GPT_4O_MINI);
468+
final var configWithGpt4 = new OrchestrationModuleConfig().withLlmConfig(GPT_4O_MINI);
470469
val schema =
471470
ResponseJsonSchema.fromType(targetType)
472471
.withDescription("Output schema for language translation.")
@@ -588,10 +587,10 @@ public OrchestrationChatResponse templateFromPromptRegistryByScenario(
588587
@Nonnull
589588
public OrchestrationChatResponse localPromptTemplate(@Nonnull final String promptTemplate)
590589
throws IOException {
591-
final var configWithGpt4 =
592-
new OrchestrationModuleConfig().withLlmConfig(GPT_4O_MINI);
590+
final var configWithGpt4 = new OrchestrationModuleConfig().withLlmConfig(GPT_4O_MINI);
593591
val template = TemplateConfig.create().fromYaml(promptTemplate);
594-
val configWithTemplate = template != null ? configWithGpt4.withTemplateConfig(template) : configWithGpt4;
592+
val configWithTemplate =
593+
template != null ? configWithGpt4.withTemplateConfig(template) : configWithGpt4;
595594

596595
val inputParams = Map.of("language", "German");
597596
val prompt = new OrchestrationPrompt(inputParams);

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import java.util.HashSet;
1212
import java.util.Optional;
1313
import java.util.Set;
14-
1514
import lombok.SneakyThrows;
1615
import org.assertj.core.api.SoftAssertions;
1716
import org.junit.jupiter.api.DisplayName;
@@ -105,8 +104,7 @@ void orchestrationAiModelAvailability() {
105104
var declaredAndInternalOnlyModels = new HashSet<>(declaredOrchestrationModelList.keySet());
106105
declaredAndInternalOnlyModels.addAll(internalOnlyModels);
107106

108-
assertThat(declaredAndInternalOnlyModels)
109-
.containsAll(availableOrchestrationModels.keySet());
107+
assertThat(declaredAndInternalOnlyModels).containsAll(availableOrchestrationModels.keySet());
110108

111109
SoftAssertions softly = new SoftAssertions();
112110
for (var model : availableOrchestrationModels.entrySet()) {

0 commit comments

Comments
 (0)