Ensure we set a higher timeout when generating images#226
Ensure we set a higher timeout when generating images#226jeffpaul merged 1 commit intoWordPress:developfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #226 +/- ##
=============================================
- Coverage 56.76% 56.69% -0.07%
Complexity 505 505
=============================================
Files 32 32
Lines 2565 2568 +3
=============================================
Hits 1456 1456
- Misses 1109 1112 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jeffpaul
left a comment
There was a problem hiding this comment.
Works well in testing locally

What?
Increases the timeout from 30s to 90s when generating images
Why?
Image generation can take 60+ seconds, particularly when using more advances modes like
gpt-image-1. The default timeout the WP AI Client sets is 30 seconds so you're likely to run into timeouts before the image generation is done.How?
Uses the
using_request_optionsoption to increase the timeout to 90 seconds when generating an image.This was previously in place but was seemingly accidentally removed while making some other changes 😭
Use of AI Tools
None
Testing Instructions
Generate featured imagebutton in the post status sidebar