Skip to content

Plugin Check Namer: Selected AI model is ignored — backend always uses Anthropic regardless of chosen model #1212

@raftaar1191

Description

@raftaar1191

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

  1. Install WordPress 7.0.
  2. Use the trunk branch of the plugin-check plugin.
  3. Navigate to Settings → Connectors and connect all three providers — Anthropic,
    Google, and OpenAI — by entering a valid API key for each.
  4. Navigate to Tools → Plugin Check Namer.
  5. Enter a plugin name (e.g. WordPress Plugin Test) and an author name (e.g. WordPress).
  6. Open the AI model dropdown — it lists models from all three connected providers
    (Claude, Gemini, GPT, etc.).
  7. Select any OpenAI GPT model (e.g. gpt-5.2) from the dropdown.
  8. 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.2 is 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions