https://www.boundaryml.com logo
🟡 Has anyone integrated with braintrust?
# questions
k
Has anyone integrated with braintrust?
a
I haven't but quickly looking through their docs they have a section describing how to build a wrapper for "custom LLM providers" [here](https://www.braintrust.dev/docs/guides/traces/customize#wrap-a-custom-llm-client)
Wrapping the baml client like would work, or using [collectors](https://docs.boundaryml.com/guide/baml-advanced/collector-track-tokens)
Either way you do need to write some boilerplate code, it's not as simple as using the OpenAI client directly
k
maybe client registry?
they have an openai proxy i think?
a
Client registry is used to select Baml clients at runtime, but the requests still go through the Baml runtime
And there's no direct integration between Baml runtime and braintrust
I'd use Claude or Chat GPT to generate the boilerplate code, give it the custom wrapper example from braintrust, a Baml example with import b and also example from collectors. The prompt it to to generate the braintrust baml wrapper
2 Views