Skip to content

Commit 0e04245

Browse files
committed
Improve code style
1 parent 763b745 commit 0e04245

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationHttpExecutor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import com.sap.ai.sdk.core.DeploymentResolutionException;
88
import com.sap.ai.sdk.core.common.ClientResponseHandler;
99
import com.sap.ai.sdk.core.common.ClientStreamingHandler;
10-
import com.sap.ai.sdk.orchestration.OrchestrationClientException.Streaming;
11-
import com.sap.ai.sdk.orchestration.OrchestrationClientException.Synchronous;
1210
import com.sap.cloud.sdk.cloudplatform.connectivity.ApacheHttpClient5Accessor;
1311
import com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination;
1412
import com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException;
@@ -51,7 +49,9 @@ <T> T execute(
5149

5250
val handler =
5351
new ClientResponseHandler<>(
54-
responseType, OrchestrationError.Synchronous.class, Synchronous.FACTORY)
52+
responseType,
53+
OrchestrationError.Synchronous.class,
54+
OrchestrationClientException.Synchronous.FACTORY)
5555
.objectMapper(JACKSON);
5656
return client.execute(request, handler);
5757

@@ -80,7 +80,7 @@ Stream<OrchestrationChatCompletionDelta> stream(
8080
return new ClientStreamingHandler<>(
8181
OrchestrationChatCompletionDelta.class,
8282
OrchestrationError.Streaming.class,
83-
Streaming.FACTORY)
83+
OrchestrationClientException.Streaming.FACTORY)
8484
.objectMapper(JACKSON)
8585
.handleStreamingResponse(client.executeOpen(null, request, null));
8686

0 commit comments

Comments
 (0)