cancel
Showing results for 
Search instead for 
Did you mean: 

SAP AI Core: proxy deployment: url not found

linhlinh_sarah
Explorer
0 Kudos

I'm currently doing a sap tutorial on the sap ai core. But whenever I try to access my deploy azure open ai model via sap core i.ex via the deployment url I get from the btp, I get the error that the url is not found. I already tested my proxy i.ex my connection to azure openAi. I can correctly communicate with my deployed AzureModel directly via azure but whenever I try to communicate via Ai core it doesn't work. Can someone maybe help me?

that's my url from the deployment: https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com/v2/inference/deployments/d6f2fc3a1054d348

and according to this tutorial: https://github.com/SAP-samples/azure-openai-aicore-cap-api/blob/main/01-ai-core-azure-openai-proxy/p...

I should be able to make a chat completion call with the endpoint: https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com/v2/inference/deployments/d6f2fc3a1054d348/...

I don't know why v2/envs is added and I can't find it in the SAP AI core documentation (envs and v2 aren't files in the project either)

Appreciate the help, thanks !

View Entire Topic
TiagoAlmeida
Participant
0 Kudos

Try /v2/inference/deployments/<deployment id>/chat/completions?api-version=2023-05-15 as the path. That worked for me.