| 开发者 | PerS |
|---|---|
| 更新时间 | 2026年4月9日 05:35 |
| PHP版本: | 8.3 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
wp_ai_client_prompt() and the Settings → Connectors page./chat/completions endpoint.api-key header required by Azure.wp-config.php constants.ai-provider-for-azure-ai-foundry folder to /wp-content/plugins/.Sign in to Azure AI Foundry and create or select a project. Deploy a model and copy the API key from the endpoint details.
The plugin supports three Azure endpoint types:
https://{resource}.services.ai.azure.com/api/projects/PROJECT-NAME (Azure AI Services)https://{resource}.openai.azure.com (Azure OpenAI)https://{resource}.cognitiveservices.azure.com (Cognitive Services)No. The plugin auto-detects all deployed models by probing your Azure endpoint. Model names and capabilities are saved automatically when you click "Connect & Detect".
Yes. Set any of these environment variables or define them as constants in wp-config.php:
AZURE_AI_FOUNDRY_API_KEYAZURE_AI_FOUNDRY_ENDPOINTAZURE_AI_FOUNDRY_MODEL (comma-separated deployment names)AZURE_AI_FOUNDRY_CAPABILITIES (comma-separated, e.g. text_generation,chat_history)The plugin supports five capabilities: text_generation, chat_history, image_generation, embedding_generation, and text_to_speech_conversion. By default, text_generation and chat_history are enabled. Use "Connect & Detect" to discover capabilities automatically.
The plugin uses 2025-04-01-preview for the Azure OpenAI surface. This is hardcoded and not user-configurable.
ai-provider-for-azure-ai-foundry.php to comply with WordPress plugin naming guidelines.ai-provider-for-azure-ai-foundry.ai-provider-for-azure-ai-foundry.zip..distignore file to exclude development files from distribution packages.