Skip to content

Conversation

@JasonTheAdams
Copy link
Member

Resolves #127

This introduces the request options as something settable through the PromptBuilder. If the underlying model is an instance of AbstractApiBasedModel then it will bind the request options to the model. Then, when model requests are made, the request options are included.

This allows for things like changing the timeout for models that like to think and take a longer amount of time.

@JasonTheAdams JasonTheAdams self-assigned this Nov 26, 2025
@github-actions
Copy link

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: JasonTheAdams <jason_the_adams@git.wordpress.org>
Co-authored-by: felixarntz <flixos90@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonTheAdams Looks almost good to go, just one improvement suggestion.

@felixarntz felixarntz added this to the 0.3.0 milestone Nov 26, 2025
@JasonTheAdams
Copy link
Member Author

Thanks, @felixarntz! Back to you!

@felixarntz felixarntz merged commit e235ecb into trunk Nov 26, 2025
8 checks passed
@felixarntz felixarntz deleted the prompt-builder-request-options branch November 26, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specifying RequestOptions as part of PromptBuilder

3 participants