-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Prevent exception when constructing WP_AI_Client_Prompt_Builder when invalid timeout is provided by filter
#11596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
westonruter
wants to merge
14
commits into
WordPress:trunk
from
westonruter:fix/request-timeout-exception
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
438011b
Add missing PHP imports
westonruter 7eb2c19
Add missing return types
westonruter 8006183
Use PHP class member variable type hints
westonruter 63542e4
Ensure default timeout is number casted to float and is at least zero
westonruter ed8d8d6
Use float value explicitly for timeout
westonruter 9925c25
Allow filtered timeout to be null and warn when invalid value provided
westonruter f01e50d
Update test to use float value
westonruter a14916b
Merge branch 'trunk' into fix/request-timeout-exception
westonruter 0068422
Fix grammar typo
westonruter 8e4c3df
Use a data provider for invalid request timeout tests
westonruter 49ea5bb
Merge branch 'trunk' into fix/request-timeout-exception
westonruter 226ac98
Eliminate null value for wp_ai_client_default_request_timeout filter
westonruter 6a03377
Rename variable for clarity
westonruter 3d6cf35
Refactor valid request timeout test to use a data provider and add cases
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.