Skip to content

Conversation

@JasonTheAdams
Copy link
Member

This adds a PromptBuilder::usingModelConfig method, which receives and merges a config into the builder. This also fixes an issue that custom options in the model config were also included in toArray(), when they should be optional as the other keys.

As a note, I decided not to worry about merging the custom options array at this point. The reason being the PromptBuilder will not have custom options, so if the config introduced has custom options then they'll be preserved.

@JasonTheAdams JasonTheAdams self-assigned this Aug 27, 2025
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.

🎉

@felixarntz felixarntz added the [Type] Enhancement A suggestion for improvement. label Aug 27, 2025
@felixarntz felixarntz added this to the Complete Implementor API milestone Aug 27, 2025
@felixarntz felixarntz merged commit 7367980 into trunk Aug 27, 2025
4 checks passed
@JasonTheAdams JasonTheAdams deleted the prompt-builder-using-config branch September 10, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants