From 0789bcbab01c17daeb0885d322f2e18397552000 Mon Sep 17 00:00:00 2001 From: Markus Ylisiurunen Date: Wed, 21 Jan 2026 22:14:54 +0200 Subject: [PATCH] clarify Azure OpenAI env vars in docs --- packages/ai/README.md | 2 +- packages/coding-agent/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ai/README.md b/packages/ai/README.md index dc5132a3..e936d55f 100644 --- a/packages/ai/README.md +++ b/packages/ai/README.md @@ -1048,7 +1048,7 @@ const response = await complete(model, { **OpenAI Codex**: Requires a ChatGPT Plus or Pro subscription. Provides access to GPT-5.x Codex models with extended context windows and reasoning capabilities. The library automatically handles session-based prompt caching when `sessionId` is provided in stream options. -**Azure OpenAI (Responses)**: Uses the Responses API only. Set `AZURE_OPENAI_API_KEY` and either `AZURE_OPENAI_BASE_URL` (should end with `/openai/v1`) or `AZURE_OPENAI_RESOURCE_NAME`. Deployment names are treated as model IDs by default, override with `azureDeploymentName` or `AZURE_OPENAI_DEPLOYMENT_NAME`. Legacy deployment-based URLs are intentionally unsupported. +**Azure OpenAI (Responses)**: Uses the Responses API only. Set `AZURE_OPENAI_API_KEY` and either `AZURE_OPENAI_BASE_URL` or `AZURE_OPENAI_RESOURCE_NAME`. Use `AZURE_OPENAI_API_VERSION` (defaults to `v1`) to override the API version if needed. Deployment names are treated as model IDs by default, override with `azureDeploymentName` or `AZURE_OPENAI_DEPLOYMENT_NAME`. Legacy deployment-based URLs are intentionally unsupported. **GitHub Copilot**: If you get "The requested model is not supported" error, enable the model manually in VS Code: open Copilot Chat, click the model selector, select the model (warning icon), and click "Enable". diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index 865423fa..ce332ed2 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -197,7 +197,7 @@ Add API keys to `~/.pi/agent/auth.json`: |----------|--------------|---------------------| | Anthropic | `anthropic` | `ANTHROPIC_API_KEY` | | OpenAI | `openai` | `OPENAI_API_KEY` | -| Azure OpenAI | `azure-openai-responses` | `AZURE_OPENAI_API_KEY` | +| Azure OpenAI | `azure-openai-responses` | `AZURE_OPENAI_API_KEY` + `AZURE_OPENAI_BASE_URL` or `AZURE_OPENAI_RESOURCE_NAME` | | Google | `google` | `GEMINI_API_KEY` | | Mistral | `mistral` | `MISTRAL_API_KEY` | | Groq | `groq` | `GROQ_API_KEY` |