File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
main/java/com/sap/ai/sdk/orchestration
test/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,7 @@ public OrchestrationChatResponse executeRequestFromJsonModuleConfig(
180180 try {
181181 moduleConfigJson = JACKSON .readTree (moduleConfig );
182182 } catch (JsonProcessingException e ) {
183- throw new IllegalArgumentException (
184- "The provided module configuration is not valid JSON" , e );
183+ throw new IllegalArgumentException ("The provided module configuration is not valid JSON" , e );
185184 }
186185 requestJson .set ("orchestration_config" , moduleConfigJson );
187186
Original file line number Diff line number Diff line change @@ -453,8 +453,7 @@ void testExecuteRequestFromJsonThrows() {
453453 .hasMessageContaining ("messages" );
454454
455455 prompt = new OrchestrationPrompt (Map .of ());
456- assertThatThrownBy (
457- () -> client .executeRequestFromJsonModuleConfig (prompt , "{ foo" ))
456+ assertThatThrownBy (() -> client .executeRequestFromJsonModuleConfig (prompt , "{ foo" ))
458457 .isInstanceOf (IllegalArgumentException .class )
459458 .hasMessageContaining ("not valid JSON" );
460459 }
You can’t perform that action at this time.
0 commit comments