-
Notifications
You must be signed in to change notification settings - Fork 90
Description
Description
When using the Plugin Check Namer Tool (/wp-admin/tools.php?page=plugin-check-namer)
with WordPress 7.0 and the trunk branch of plugin-check, the AI model dropdown
selection is completely ignored. Even when a GPT (OpenAI) model is explicitly selected,
the backend always routes the request to the Anthropic API, regardless of the user's
choice.
Steps to Reproduce
- Install WordPress 7.0.
- Use the trunk branch of the plugin-check plugin.
- Navigate to Settings → Connectors and connect all three providers — Anthropic,
Google, and OpenAI — by entering a valid API key for each. - Navigate to Tools → Plugin Check Namer.
- Enter a plugin name (e.g.
WordPress Plugin Test) and an author name (e.g.WordPress). - Open the AI model dropdown — it lists models from all three connected providers
(Claude, Gemini, GPT, etc.). - Select any OpenAI GPT model (e.g.
gpt-5.2) from the dropdown. - Click Evaluate name.
Expected Behaviour
The AJAX request should be sent using the selected model (gpt-5.2 via OpenAI), and the
OpenAI API should be called accordingly.
Actual Behaviour
Despite selecting a GPT model, the backend ignores the selection and routes the request to
the Anthropic API. This is confirmed via the browser DevTools Network tab, where the
AJAX response returns:
{
"success": false,
"data": {
"message": "Bad Request (400) – Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits."
}
}The error message clearly shows Anthropic was called even though an OpenAI model was
selected. The model selection dropdown has no effect on which provider is used.
Screenshots / Evidence
- Connectors screen: All three providers (Anthropic, Google, OpenAI) are connected.
- Plugin Check Namer:
gpt-5.2is selected in the AI model dropdown. - DevTools Network → Preview: Response shows an Anthropic-specific error, confirming
the wrong provider was called.
Recording.97.mp4
Environment
- WordPress version: 7.0 (beta5)
- Plugin-check branch: trunk
- Connected providers: Anthropic, Google, OpenAI
- Selected model:
gpt-5.2(OpenAI) - Browser: Chrome
Suggested Fix
The selected model value from the dropdown should be passed correctly in the AJAX request
payload, and the backend handler should use it to resolve the appropriate AI provider
instead of defaulting to Anthropic.