Skip to content

Commit b63f11a

Browse files
committed
Style
1 parent 7f251db commit b63f11a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

core/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156
<plugin>
157157
<groupId>com.sap.cloud.sdk.datamodel</groupId>
158158
<artifactId>openapi-generator-maven-plugin</artifactId>
159-
<version>5.15.0-SNAPSHOT</version>
160159
<configuration>
161160
<skip>true</skip>
162161
<!-- TODO: remove this once Cloud SDK 5.15.0 is released -->

core/src/main/java/com/sap/ai/sdk/core/AiCoreService.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ public HttpDestination getDestinationForDeploymentByScenario(
130130
return toInferenceDestination(resourceGroup, deploymentId);
131131
}
132132

133+
/**
134+
* Get an {@link ApiClient} to execute requests based on clients generated from OpenAPI
135+
* specifications.
136+
*
137+
* @return A new client object based on {@link #getBaseDestination()}.
138+
*/
133139
@Nonnull
134140
public ApiClient getApiClient() {
135141
val destination = getBaseDestination();
@@ -176,6 +182,6 @@ private static String buildDeploymentPath(@Nonnull final String deploymentId) {
176182
* @param resourceGroup the resource group of the deleted deployment, usually "default".
177183
*/
178184
public void reloadCachedDeployments(@Nonnull final String resourceGroup) {
179-
new DeploymentResolver(this).reloadDeployments(resourceGroup);
185+
deploymentResolver.reloadDeployments(resourceGroup);
180186
}
181187
}

core/src/main/java/com/sap/ai/sdk/core/DeploymentResolutionException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
import lombok.experimental.StandardException;
44

5+
/** Exception thrown when a lookup for a deployment ID on the AI Core service failed. */
56
@StandardException
67
public class DeploymentResolutionException extends RuntimeException {}

0 commit comments

Comments
 (0)