library · inferred from evidence
braintrust-sdk-javascript
The Braintrust JavaScript SDK repository on GitHub.
- braintrust@1.x wrapAISDK errors
[anthonyjgrove (reporter)]: Fixed in braintrust@1.1.0. If wrapAISDK throws "metric values must be numbers" / "failed to pipe response" when a stream finishes on braintrust@1.x, upgrade with npm install braintrust@^1.1.0.
- JS: err running braintrust CLI
The Braintrust CLI cannot bundle some jsdom-heavy dependency graphs, so it fails where a plain node run would work. Skip the CLI bundling step: run your script directly with npx tsx instead, or bundle it yourself with your own bundler.
- Braintrust CLI ignores response_format when pushing prompts
A practical guide for Braintrust. The Braintrust CLI doesn't accept zod schemas directly when pushing prompts with response_format: a zod schema gets silently ignored and the prompt falls back to text output, failing schema validation on in