Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OpenAI + LiteLLM: trace new decisions API

オープン
#921 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@AbhiPrasad がすでに取り組んでいます。

2026年10月13日 から。

  • #927 @AbhiPrasad による — オープン

評価

この issue はまだ評価されていません。

説明

feature integration: litellm integration: openai python

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).

主要言語
Python
スター
22
フォーク
24
平均マージ
15時間 1分
マージ済み PR(30日)
109

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

braintrustdata/braintrust-sdk-python のほかの issue

braintrustdata/braintrust-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。