File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ public OpenAiClient withApiVersion(@Nonnull final String apiVersion) {
9494 @ Beta
9595 @ Nonnull
9696 public static OpenAiClient withCustomDestination (@ Nonnull final Destination destination ) {
97- OpenAiClient client = new OpenAiClient (destination );
97+ final OpenAiClient client = new OpenAiClient (destination );
9898
99- if (! destination .get ("URL.queries.api-version" ).isDefined ()) {
100- client = client . withApiVersion ( DEFAULT_API_VERSION ) ;
99+ if (destination .get ("URL.queries.api-version" ).isDefined ()) {
100+ return client ;
101101 }
102102
103- return client ;
103+ return client . withApiVersion ( DEFAULT_API_VERSION ) ;
104104 }
105105
106106 /**
You can’t perform that action at this time.
0 commit comments