[wp-trac] [WordPress Trac] #65115: AI Client lacks filters for customizing model selection and generation parameters
WordPress Trac
noreply at wordpress.org
Wed Apr 22 20:27:56 UTC 2026
#65115: AI Client lacks filters for customizing model selection and generation
parameters
----------------------------------------+----------------------------------
Reporter: raftaar1191 | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: AI | Version: trunk
Severity: normal | Keywords: needs-patch 2nd-
Focuses: accessibility, performance | opinion
----------------------------------------+----------------------------------
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:
* `temperature`
* `max_tokens`
* `top_p`
* `top_k`
* `presence_penalty`
* `frequency_penalty`
* The PSR-14 `BeforeGenerateResultEvent` is 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list