Hey @Vrushank | Portkey , I found this in docs
https://portkey.ai/docs/welcome/integration-guides/azure-openai#key-mapping and I suspect that internally portkey try to replace the variables like this:
curl https://{YOUR_RESOURCE_NAME}.openai.azure.com/openai/deployments/{YOUR_DEPLOYMENT_NAME}/chat/completions?api-version={API_VERSION} \
-H "Content-Type: application/json" \
-H "api-key: {YOUR_API_KEY}" \
-d '{"messages": [{"role": "system", "content": "Hello"}] }'
So, using the AzureOpenAI client you can replace this
https://{YOUR_RESOURCE_NAME}.openai.azure.com/
with the param
azure_endpoint
.