@sap-ai-sdk/orchestration
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
20 lines • 766 B
JavaScript
import { resolveDeploymentId } from '@sap-ai-sdk/ai-api/internal.js';
/**
* Get the deployment ID for an orchestration scenario.
* @param deploymentConfig - The deployment configuration (resource group or deployment ID).
* @param destination - The destination to use for the request.
* @returns The ID of the deployment, if found.
* @internal
*/
export async function getOrchestrationDeploymentId(deploymentConfig, destination) {
if (typeof deploymentConfig === 'object' &&
'deploymentId' in deploymentConfig) {
return deploymentConfig.deploymentId;
}
return resolveDeploymentId({
scenarioId: 'orchestration',
...(deploymentConfig ?? {}),
destination
});
}
//# sourceMappingURL=deployment-resolver.js.map