[wp-trac] [WordPress Trac] #65094: AI: Prompt construction fails with fatal error when wp_ai_client_default_request_timeout filter returns negative number
WordPress Trac
noreply at wordpress.org
Tue Apr 21 11:13:54 UTC 2026
#65094: AI: Prompt construction fails with fatal error when
wp_ai_client_default_request_timeout filter returns negative number
--------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: AI | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Comment (by tusharaddweb):
Tested the issue and confirm that return a negative value for the
wp_ai_client_default_request_timeout filter generate a fatal error during
prompt construction.
The patch correctly handle invalid timeout values and prevents the crash.
AI requests now work as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65094#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list