Opened 5 months ago
Last modified 3 months ago
#65115 new feature request
AI Client lacks filters for customizing model selection and generation parameters
| Reported by: | raftaar1191 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | AI | Version: | |
| Severity: | normal | Keywords: | ai-client needs-patch 2nd-opinion |
| Cc: | Focuses: |
Description
The AI Client in WordPress 7.0 provides very limited filtering capabilities for third-party plugin customization.
Existing Filters
Currently, only two filters exist:
wp_ai_client_default_request_timeout(HTTP timeout only)wp_ai_client_prevent_prompt(request abort only)
Current Limitations
There is currently no way for third-party plugins to customize:
- Model selection per-capability (text generation, image generation, vision)
- Generation parameters:
temperaturemax_tokenstop_ptop_kpresence_penaltyfrequency_penalty
- The PSR-14
BeforeGenerateResultEventis read-only and cannot modify parameters
Impact
This severely limits the ability of plugin developers to build AI-powered features with custom behavior and control. Plugin developers cannot:
- Dynamically select different models based on context or user role
- Adjust temperature for deterministic vs. creative output
- Control token limits per-capability or per-context
- Set request timeouts per-capability
- Conditionally modify generation parameters based on post type, user subscription, or other factors
Why This Matters
Without these hooks, developers are forced to use workarounds and cannot leverage standard WordPress filter conventions for AI Client customization. This limits the extensibility of the AI Client and prevents a rich ecosystem of AI-powered plugins from being built.
Change History (8)
This ticket was mentioned in Slack in #core-ai by raftaar1191. View the logs.
5 months ago
This ticket was mentioned in Slack in #core-ai by westonruter. View the logs.
5 months ago
#6
@
4 months ago
Removing trunk version as this is not going to be shipped with WP 7.0 but in the next releases.
#7
@
4 months ago
- Version trunk
Since this is an enhancement, there's no first version of WordPress this can be reproduced in. Removing trunk version.
#8
@
3 months ago
@jason_the_adams, how do you see fit here? It isn't milestoned for WordPress 7.1, nor was it covered in https://make.wordpress.org/ai/2026/06/19/whats-coming-to-the-ai-client-in-wp-7-1/, so I'd like to get clarifications to triage it properly.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
related: https://core.trac.wordpress.org/ticket/65097