OpenAI + LiteLLM: trace new decisions API
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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/: patchDecisions.createandAsyncDecisions.createto emit an LLM span, reusing the existing usage parsing.py/src/braintrust/integrations/litellm/patchers.py: add patchers fordecisions/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).
- Lenguaje dominante
- Python
- Estrellas
- 22
- Forks
- 24
- Merge medio
- 15 h 1 min
- PR fusionados (30 d)
- 109
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de braintrustdata/braintrust-sdk-python
-
feature python
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
braintrustdata/braintrust-sdk-python#868 ·
Los mantenedores suelen responder en 1 día
-
Trace new provider APIs/params from Oct 2026 dependency bumpsPosiblemente ocupada @AbhiPrasad la tomó hoy. Abiertofeature python
braintrustdata/braintrust-sdk-python#920 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
new-integration python
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
braintrustdata/braintrust-sdk-python#854 ·
Los mantenedores suelen responder en 1 día
-
new-integration python
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
braintrustdata/braintrust-sdk-python#853 ·
Los mantenedores suelen responder en 1 día
-
new-integration python
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
braintrustdata/braintrust-sdk-python#852 ·
Los mantenedores suelen responder en 1 día
Todos los issues de braintrustdata/braintrust-sdk-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
onyx-dot-app/onyx#16016 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
black --check exits 0 and prints All done when a multi file run is interruptedPosiblemente ocupada @jiteshgulati la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Non-positive worker counts wait for results without starting workersPosiblemente ocupada @IlyaKhalafi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día