You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are migrating to SDK from AI Client for one of our existing GenAI feature and facing the issue w.r.t deployment creation and embedding generation Endpoint via service instance binding.(similar issue when tried via destination also). Followed all the steps as per documentation.
Would like to verify if its a bug from SDK.
We follow multi-tenancy and we have custom ResourceGroup, configs and deployments for each tenant.
Unfortunately you didn't track the exception message (and potential suppressed exceptions). It's difficult to tell what exactly went wrong.
However I can tell the following:
The internal SAP Cloud SDK...
successfully finds at least one service binding for aicore.
fails to translate it to a Destination like object.
From the service bindings, it looks like your first bound instance results in an incorrect service binding payload.
Specifically if certificate-based authentication is assumed, then internal SAP Cloud SDK would expect "credential-type": "x509". Without, it's failing to interpret the first aicore service binding, resulting in an exception.
Therefore my suggestion would be to either remove the first service biding with the certificate, or provide full exception details, e.g. by catching and logging/printing it.
Ask the Question
Issue Description
We are migrating to SDK from AI Client for one of our existing GenAI feature and facing the issue w.r.t deployment creation and embedding generation Endpoint via service instance binding.(similar issue when tried via destination also). Followed all the steps as per documentation.
Would like to verify if its a bug from SDK.
We follow multi-tenancy and we have custom ResourceGroup, configs and deployments for each tenant.
POM & Service Env Variable
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/pom.xml#L145
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/logs/EnvoirmentofBoundService.txt
Issue with deployment creation.
Implementation .
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/src/main/java/com/sap/c4p/rm/skill/aicore/service/AIClient.java#L600
Error
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/logs/logDeploymentCreation.png
cloud log.
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/logs/skill-srv%20ceateDeployment.txt
Issue with Embedding generation.
Implementation.
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/src/main/java/com/sap/c4p/rm/skill/aicore/service/AIClient.java#L248
Error
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/logs/logEmbCreation.png
cloud log
https://github.tools.sap/Cloud4RM/Skill/blob/dev/aiSDK/srv/logs/skill-srv%20createEmbeddings.txt
Impact
Blocked development
Both Destination instance and AICore service instance are bound to the service, please feel free if any further input required.
The text was updated successfully, but these errors were encountered: