File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
orchestration/src/test/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1111import com .fasterxml .jackson .annotation .JsonProperty ;
1212import com .sap .ai .sdk .orchestration .model .DPIConfig ;
1313import com .sap .ai .sdk .orchestration .model .DPIEntities ;
14+ import com .sap .ai .sdk .orchestration .model .DPIStandardEntity ;
1415import com .sap .ai .sdk .orchestration .model .DocumentGroundingFilter ;
1516import com .sap .ai .sdk .orchestration .model .GroundingModuleConfigConfig ;
1617import com .sap .ai .sdk .orchestration .model .GroundingModuleConfigConfigFiltersInner ;
@@ -90,7 +91,8 @@ void testDpiMaskingConfig() {
9091 DPIConfig dpiConfig = (DPIConfig ) config .getMaskingConfig ().getMaskingProviders ().get (0 );
9192 assertThat (dpiConfig .getMethod ()).isEqualTo (DPIConfig .MethodEnum .ANONYMIZATION );
9293 assertThat (dpiConfig .getEntities ()).hasSize (1 );
93- assertThat (dpiConfig .getEntities ().get (0 ).getType ()).isEqualTo (DPIEntities .ADDRESS );
94+ assertThat (((DPIStandardEntity ) dpiConfig .getEntities ().get (0 )).getType ())
95+ .isEqualTo (DPIEntities .ADDRESS );
9496 assertThat (dpiConfig .getMaskGroundingInput ().isEnabled ()).isEqualTo (true );
9597 assertThat (dpiConfig .getAllowlist ()).containsExactly ("Alice" );
9698
Original file line number Diff line number Diff line change @@ -687,9 +687,9 @@ void streamChatCompletionDeltas() throws IOException {
687687 assertThat (deltaList .get (2 ).getFinishReason ()).isEqualTo ("stop" );
688688
689689 // should be of type LLMModuleResultStreaming, will be fixed with a discriminator
690- var result0 = ( LLMModuleResultSynchronous ) deltaList .get (0 ).getOrchestrationResult ();
691- var result1 = ( LLMModuleResultSynchronous ) deltaList .get (1 ).getOrchestrationResult ();
692- var result2 = ( LLMModuleResultSynchronous ) deltaList .get (2 ).getOrchestrationResult ();
690+ var result0 = deltaList .get (0 ).getOrchestrationResult ();
691+ var result1 = deltaList .get (1 ).getOrchestrationResult ();
692+ var result2 = deltaList .get (2 ).getOrchestrationResult ();
693693
694694 assertThat (result0 .getSystemFingerprint ()).isEmpty ();
695695 assertThat (result0 .getId ()).isEmpty ();
You can’t perform that action at this time.
0 commit comments