Skip to content

Commit ac4ec18

Browse files
committed
Make deployment path beta and protected
1 parent e4bc9d8 commit ac4ec18

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,17 @@ HttpDestination toInferenceDestination(
170170
.build();
171171
}
172172

173+
/**
174+
* Helper method to build the <b>relative</b> URL path for the inference endpoint of a deployment.
175+
* The result of this together with the base path defined on the destination will be used for
176+
* inference calls towards this deployment.
177+
*
178+
* @param deploymentId The deployment ID to be used for the path.
179+
* @return The path to the deployment.
180+
*/
173181
@Nonnull
174-
private static String buildDeploymentPath(@Nonnull final String deploymentId) {
182+
@Beta
183+
protected String buildDeploymentPath(@Nonnull final String deploymentId) {
175184
return "inference/deployments/%s/".formatted(deploymentId);
176185
}
177186

0 commit comments

Comments
 (0)