From bd9c933bc063557aa743e45b5c5d3a1947b43d46 Mon Sep 17 00:00:00 2001 From: Christoph Vollmann Date: Sun, 26 Oct 2025 16:09:36 +0100 Subject: docs: Add Azure configuration details for OpenAI-compatible API (#2072) * docs: Add Azure configuration details for OpenAI-compatible API * Update docs/docs/14-guides/05-different-ai-providers.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/docs/14-guides/05-different-ai-providers.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs') diff --git a/docs/docs/14-guides/05-different-ai-providers.md b/docs/docs/14-guides/05-different-ai-providers.md index 33408c00..9a86e04f 100644 --- a/docs/docs/14-guides/05-different-ai-providers.md +++ b/docs/docs/14-guides/05-different-ai-providers.md @@ -64,3 +64,25 @@ OPENAI_API_KEY: Your Perplexity API Key INFERENCE_TEXT_MODEL: sonar-pro INFERENCE_IMAGE_MODEL: sonar-pro ``` + +## Azure + +Azure has an OpenAI-compatible API. + +You can get your API key from the Overview page of the Azure AI Foundry Portal or via "Keys + Endpoints" on the resource in the Azure Portal. + +:::warning +The [model name is the deployment name](https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/switching-endpoints#keyword-argument-for-model) you specified when deploying the model, which may differ from the base model name. +::: + +``` +# Deployed via Azure AI Foundry: +OPENAI_BASE_URL=https://{your-azure-ai-foundry-resource-name}.cognitiveservices.azure.com/openai/v1/ + +# Deployed via Azure OpenAI Service: +OPENAI_BASE_URL=https://{your-azure-openai-resource-name}.openai.azure.com/openai/v1/ + +OPENAI_API_KEY=YOUR_API_KEY +INFERENCE_TEXT_MODEL=YOUR_DEPLOYMENT_NAME +INFERENCE_IMAGE_MODEL=YOUR_DEPLOYMENT_NAME +``` -- cgit v1.2.3-70-g09d2