openclaw/docs/providers
Li Hongmin 9e857e6154 feat: add Azure provider support
Add support for Azure-hosted OpenAI-compatible models including OpenAI (GPT-4, GPT-5.2), DeepSeek, and other compatible models.

Implementation:
- Add Azure provider configuration with auto-discovery from environment
- Environment variables: AZURE_ENDPOINT, AZURE_API_KEY, AZURE_DEPLOYMENT, AZURE_API_VERSION
- URL fix middleware to handle Azure's specific URL format
- Tool call ID sanitization for Azure's 40-character limit
- Onboarding wizard support for interactive Azure setup
- Comprehensive tests for configuration and URL handling
- Documentation with setup guide and troubleshooting

Technical details:
- Azure uses different URL structure: {endpoint}/openai/deployments/{deployment}/chat/completions?api-version={version}
- OpenAI SDK constructs URLs incorrectly for Azure, placing query params before path
- URL fix middleware intercepts and corrects malformed URLs transparently
- Supports max_completion_tokens for newer models via compat config
- Tool call IDs automatically truncated to 40 characters for Azure compatibility

Onboard integration:
- Added Azure to auth choice groups (appears after OpenAI)
- Interactive prompts for endpoint, deployment name, API key, and API version
- Auto-discovery from environment variables if already configured
- Supports both manual configuration and environment variable detection

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-28 17:33:34 +09:00
..
anthropic.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
azure.md feat: add Azure provider support 2026-01-28 17:33:34 +09:00
claude-max-api-proxy.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
deepgram.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
github-copilot.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
glm.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
index.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
minimax.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
models.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
moonshot.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
ollama.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
openai.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
opencode.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
openrouter.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
qwen.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
synthetic.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
venice.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
vercel-ai-gateway.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
zai.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00