File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
sample-code/spring-app/src
main/java/com/sap/ai/sdk/app/services
test/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 1111import java .util .HashSet ;
1212import java .util .Optional ;
1313import java .util .Set ;
14-
1514import lombok .SneakyThrows ;
1615import org .assertj .core .api .SoftAssertions ;
1716import 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 ()) {
You can’t perform that action at this time.
0 commit comments