內容簡介
AI Provider for Azure AI Foundry 外掛可將 Azure AI Foundry 註冊為 WordPress 7.0 的 AI 提供者,實現文本生成、圖像生成、嵌入以及語音合成等功能,提升網站的智能化體驗。
【主要功能】
• AI 客戶端整合,透過 wp_ai_client_prompt() 使用
• 支援 OpenAI 兼容的 Azure AI Foundry /chat/completions 端點
• 自動檢測已部署模型及其功能
• 支援多種 Azure AI 端點類型
• 自動發現所有已部署模型,無需手動設定
• 自訂認證,發送 Azure 所需的 api-key 標頭
外掛標籤
開發者團隊
② 後台搜尋「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.
