Skip to content

[Deps] Pin braintrust <0.13 to unbreak Python CI#192

Closed
Kenny Wong (wong-codaio) wants to merge 1 commit into
braintrustdata:mainfrom
wong-codaio:wong/deps/pin-braintrust
Closed

[Deps] Pin braintrust <0.13 to unbreak Python CI#192
Kenny Wong (wong-codaio) wants to merge 1 commit into
braintrustdata:mainfrom
wong-codaio:wong/deps/pin-braintrust

Conversation

@wong-codaio
Copy link
Copy Markdown
Contributor

Summary

[Deps] Pin braintrust <0.13 to unbreak Python CI

  • braintrust 0.13.0 removed the wrapper classes (ChatCompletionV0Wrapper, OpenAIV1Wrapper, …) and changed wrap_openai to no longer return a NamedWrapper. test_oai.py imports those at module load, so pytest collection aborts and the whole Python job fails on every PR (deps are installed unpinned).
  • caps at the last compatible release (0.12.1). stopgap — adapting autoevals to braintrust ≥0.13 (incl. LLMClient.is_wrapped) is follow-up.

PTAL:
FYI:

Test plan

  • pytest py/autoevals/test_oai.py → 17 passed on 0.12.1 (was: collection ImportError on 0.23)
  • full test_llm.py + test_oai.py green on 0.12.1

Other Notes

braintrust 0.13.0 removed the wrapper classes (ChatCompletionV0Wrapper,
OpenAIV1Wrapper, ...) and changed wrap_openai to no longer return a
NamedWrapper. That breaks test_oai.py's imports (aborting pytest collection)
and LLMClient.is_wrapped detection. Cap at the last compatible release
(0.12.1) until autoevals is adapted to the new braintrust API.
@wong-codaio
Copy link
Copy Markdown
Contributor Author

Superseded by #193 — fixing forward to support braintrust >=0.13 instead of pinning to the last compatible release.

@wong-codaio Kenny Wong (wong-codaio) deleted the wong/deps/pin-braintrust branch June 2, 2026 13:09
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.

1 participant