Skip to content

Commit 2324823

Browse files
committed
feat(litellm): trace transcription calls
Instrument litellm.transcription() and litellm.atranscription() with Braintrust spans, including audio input attachments and transcription text output. Add focused VCR-backed regression coverage for the sync and async transcription paths.
1 parent 612b44e commit 2324823

6 files changed

Lines changed: 1480 additions & 5 deletions

File tree

py/src/braintrust/integrations/litellm/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ def patch_litellm() -> bool:
99
1010
This wraps litellm.completion, litellm.acompletion, litellm.responses,
1111
litellm.aresponses, litellm.image_generation, litellm.aimage_generation,
12-
litellm.embedding, litellm.aembedding, and litellm.moderation to
13-
automatically create Braintrust spans with detailed token metrics,
12+
litellm.embedding, litellm.aembedding, litellm.moderation,
13+
litellm.transcription, and litellm.atranscription to automatically
14+
create Braintrust spans with detailed token metrics,
1415
timing, and costs.
1516
1617
Returns:

0 commit comments

Comments
 (0)