Commit c5bfe58
authored
fix(openai): re-export NamedWrapper from braintrust.oai for back-compat (#319)
autoevals imports NamedWrapper from braintrust.oai to detect whether an
OpenAI client has already been wrapped by the Braintrust SDK. After the
0.15.0 refactor moved the class to
braintrust.integrations.openai.tracing,
the import silently fell back to an internal stub, so isinstance checks
no longer matched braintrust-wrapped clients. autoevals then re-wrapped
with its own non-tracing shim, dropping scorer spans
(openai.responses.create
and Embedding calls with purpose="scorer") across a number of expect
tests.
Re-export NamedWrapper from braintrust.oai so autoevals' existing
detection
path keeps working.1 parent 8132baa commit c5bfe58
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
0 commit comments