| 开发者 |
bplugins
abuhayat |
|---|---|
| 更新时间 | 2026年10月11日 18:43 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
manage_options capability, the standard REST nonce, and admin nonces.{PROVIDER_ID}_API_KEY, for example OPENROUTER_API_KEY, HUGGINGFACE_API_KEY or REPLICATE_API_KEY; custom providers use their own ID the same way.b-ai-provider-connectors folder to the /wp-content/plugins/ directory, or install it from the Plugins screen.WordPress 7.0 or newer — the plugin builds on the Connectors API and the AI Client that ship with core since 7.0.
Only users with the manage_options capability.
No. Each test re-uses the API key already stored for the connector (or supplied via an environment variable / PHP constant) and calls the same provider endpoint a normal client would use.
Each provider exposes a lightweight endpoint that returns 200 for a valid key and 401/403 for an invalid one (Replicate uses Authorization: Token, all others use Authorization: Bearer). Perplexity has no public /models endpoint, so the test sends an intentionally-malformed chat/completions request and treats 400/422 (auth passed, payload invalid) as a valid key, 401 as invalid.
Switch it off on Settings → AI Providers. Disabled providers disappear from the Connectors screen and are never used by AI features; any key you saved is kept in case you switch it back on.
Yes. Add a custom provider with the server's OpenAI-compatible base URL (for example http://localhost:11434/v1 for Ollama). If the server does not need a key, enter any placeholder on the Connectors screen.
Both publish their model list without authentication, so the AI Client's standard "list models" check would accept any key. This plugin verifies those two against an authenticated endpoint instead.