外掛標籤
開發者團隊
② 後台搜尋「AI Provider for Azure AI Foundry」→ 直接安裝(推薦)
原文外掛簡介
AI Provider for Azure AI Foundry registers an AI provider with the WordPress 7.0 AI Client, enabling text generation, image generation, embeddings, and text-to-speech via the Azure AI Foundry Model Inference API.
Features
AI Client integration — usable via wp_ai_client_prompt() and the Settings → Connectors page.
OpenAI-compatible — uses the Azure AI Foundry /chat/completions endpoint.
Capability detection — auto-detects deployed models and capabilities (text generation, chat history, image generation, embeddings, text-to-speech) by probing the Azure endpoint.
Multiple endpoint types — supports Azure AI Services, Azure OpenAI, and Cognitive Services endpoints.
Auto-detection — discovers all deployed models via POST-based probing. No manual model name or API version configuration needed.
Custom authentication — sends the api-key header required by Azure.
Endpoint validation — validates Azure endpoint URLs with inline error messages.
Environment variable fallback — every setting can be overridden via environment variables or wp-config.php constants.
Connectors page UI — custom connector with fields for API key and endpoint URL. Detected deployments and capabilities displayed as read-only chips.
Requirements
WordPress 7.0 or later
PHP 8.3+
An Azure AI Foundry resource with a deployed model
Documentation
Building an AI Provider Plugin for WordPress 7, a deep-dive into provider registration, settings, authentication, and the Connectors page UI.
