Skip to content

Commit c1b6440

Browse files
committed
Merge branch 'feat/orchestration/filter-exception-handling-factory' of https://github.com/SAP/ai-sdk-java into feat/orchestration/filter-exception-handling-factory
2 parents 0578560 + 2bc9a24 commit c1b6440

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/main/java/com/sap/ai/sdk/core/common/ClientResponseHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ private Try<String> tryGetContent(@Nonnull final HttpEntity entity) {
105105
* @throws ClientException if the response is an error (4xx/5xx)
106106
*/
107107
@SuppressWarnings("PMD.CloseResource")
108-
@Nonnull
109108
protected void buildAndThrowException(@Nonnull final ClassicHttpResponse httpResponse) throws E {
110109

111110
val entity = httpResponse.getEntity();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ void testThrowsOnContentFilter() {
729729

730730
// this must not throw, since the stream is lazily evaluated
731731
var stream = mock.streamChatCompletion(new OrchestrationPrompt(""), config);
732-
assertThatThrownBy(() -> stream.toList())
732+
assertThatThrownBy(stream::toList)
733733
.isInstanceOf(OrchestrationOutputFilterException.class)
734734
.hasMessage("Content filter filtered the output.")
735735
.extracting(e -> ((OrchestrationOutputFilterException) e).getFilterDetails())

0 commit comments

Comments
 (0)