fix: Make sure params get passed through for compiled prompt#1558
Merged
Abhijeet Prasad (AbhiPrasad) merged 3 commits intomainfrom Mar 18, 2026
Merged
fix: Make sure params get passed through for compiled prompt#1558Abhijeet Prasad (AbhiPrasad) merged 3 commits intomainfrom
Abhijeet Prasad (AbhiPrasad) merged 3 commits intomainfrom
Conversation
Member
Author
|
Hmm, this is a breaking change, but it's one for correctness. We can just leave this PR until the next major version though. |
Member
|
Why exactly is this a breaking change? It doesn't seem like one cause we simply widen a return type no? The compatibility CI check is sometimes overly sensitive because it's literally comparing the text of TS definitions. |
Member
Author
|
Ah okay we are fine. I over though it. We did break |
Luca Forstner (lforst)
approved these changes
Mar 18, 2026
Luca Forstner (lforst)
added a commit
that referenced
this pull request
Mar 18, 2026
…der open ai SDKs (#1602) Sorta adjusts #1558 because it started failing here https://github.com/braintrustdata/braintrust/actions/runs/23257638886/job/67617203251?pr=11883 and hopefully fixes it.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
resolves https://linear.app/braintrustdata/issue/BT-4378/typescript-sdk-promptbuild-fields-response-format-tool-choice
This fixes a bug with typings where params were not being passed through correctly.
I didn't add a test for this because it's just a types change, but lmk and I can add a set of type check tests.