[Deps] Pin braintrust <0.13 to unbreak Python CI#192
Closed
Kenny Wong (wong-codaio) wants to merge 1 commit into
Closed
[Deps] Pin braintrust <0.13 to unbreak Python CI#192Kenny Wong (wong-codaio) wants to merge 1 commit into
Kenny Wong (wong-codaio) wants to merge 1 commit into
Conversation
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.
2 tasks
Contributor
Author
|
Superseded by #193 — fixing forward to support braintrust >=0.13 instead of pinning to the last compatible release. |
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.
Summary
[Deps] Pin braintrust <0.13 to unbreak Python CI
braintrust0.13.0 removed the wrapper classes (ChatCompletionV0Wrapper,OpenAIV1Wrapper, …) and changedwrap_openaito no longer return aNamedWrapper.test_oai.pyimports those at module load, so pytest collection aborts and the whole Python job fails on every PR (deps are installed unpinned).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)test_llm.py+test_oai.pygreen on 0.12.1Other Notes