You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAI 3.26.0 added client.decisions.create (sync + async). It calls a model and returns usage, including cached, cache-write and reasoning tokens. LiteLLM 1.105.0 added matching litellm.decisions() / litellm.adecisions() (litellm/decisions/main.py).
Neither is traced today, so these calls produce no LLM spans.
Proposed change
py/src/braintrust/integrations/openai/: patch Decisions.create and AsyncDecisions.create to emit an LLM span, reusing the existing usage parsing.
py/src/braintrust/integrations/litellm/patchers.py: add patchers for decisions / adecisions.
Add cassette-backed tests for both, gated on the version that introduced the API (see integrations/versioning.py).
Found while reviewing the dependency bumps in #911 (openai 3.24.0 → 3.29.0, litellm 1.104.0 → 1.105.0).
Activity
AbhiPrasad commentedon Oct 14, 2026
released with https://github.com/braintrustdata/braintrust-sdk-python/releases/tag/py-sdk-v0.46.0
feat(integrations): trace openai and litellm decisions API (braintrus…