Support for Azure OpenAI accessed via APIM Gateway (non-standard Azure endpoint)
question
I’m working with Alumnium + Azure OpenAI, but in my organization we access Azure OpenAI through an APIM Gateway, not the standard Azure endpoint.
The APIM gateway URL looks like this:
https://<company-domain>/.../chat/completions
Because APIM rewrites the request and does not expose the standard Azure OpenAI endpoint format:
https://<resource-name>.openai.azure.com/
What I tried:
export ALUMNIUM_MODEL="azure_openai"
export AZURE_OPENAI_API_KEY="..."
export AZURE_OPENAI_ENDPOINT="https://<company-apim-url>/chat/completions"
export OPENAI_API_VERSION="2024-08-01-preview"
Expected Behavior
Alumnium should allow Azure OpenAI requests even when routed through APIM, as long as the endpoint, API version, and key are valid.
Many enterprise companies (including ours) use APIM as a security layer in front of Azure OpenAI.
Direct access to *.openai.azure.com is disabled for security policy reasons.
关闭于 2025-12-17 9 条评论