Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As a caller transcribing audio through LiteLLM against Deepgram, I need the provider config to forward only Deepgram-supported params, send my audio bytes to the correct /listen endpoint with a Token auth header, and turn the /listen response back into an OpenAI-shaped transcription (including diarized transcripts) or fail loud when the response is malformed, so my transcription request and its result round-trip in a shape the OpenAI SDK accepts
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
As a caller transcribing audio through LiteLLM against Deepgram, I need the provider config to forward only Deepgram-supported params, send my audio bytes to the correct /listen endpoint with a Token auth header, and turn the /listen response back into an OpenAI-shaped transcription (including diarized transcripts) or fail loud when the response is malformed, so my transcription request and its result round-trip in a shape the OpenAI SDK accepts
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
The Deepgram audio-transcription provider config is the pure request/response/param/endpoint/auth transform boundary mirroring the generic Rust core audio_transcription transform trait (AudioTranscriptionProviderConfig); its param mapping, request build, response parse, endpoint construction and auth-header assembly must be specified and verified so transcription requests reach Deepgram and their results reach the caller in an accepted shape
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- pending
History
- Created
- Jul 31, 2026, 00:00 UTC · Claude Code · AI agent
- Modified
- Jul 31, 2026, 00:00 UTC · Claude Code · AI agent
Hazard review
- scenarioreviewednominalboundaryempty_input
Stakeholder aggregate carries the transform partitions: nominal forwards supported params, sends bytes to /listen with a Token header and extracts the transcript, boundary is the diarization and detected-language edges and the trailing-slash api_base seam, empty_input is the empty param dict / empty word stream / absent api_base default fallback; these decompose into the deepgram_audio_transcription SW-REQs, with the malformed-response path carried by the DERR re-raise guarantee
- propertynot applicable
Cross-cutting algebraic property invariants are discharged at the child SW-REQ level (pure param filter, pure response transform, pure URL builder); the informal stakeholder aggregate has no runtime code of its own
- structuralnot applicable
Informal stakeholder aggregate over garbage-collected Python dict/list/string operations with no manual memory, pointer arithmetic, overflow, or format string
- domainnot applicable
The scoped provider-config boundary maps params, formats a /listen URL string, transforms an already-received response and assembles a headers dict; it instantiates no HTTP client and opens no socket itself, so the external-call and http-client domain classes bind to the out-of-scope Deepgram HTTP handler
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
3 obligations · 2 discharged · 1 not yet witnessed
Browse the catalogueEvidence tagged via <REQ> is witnessed by a requirement that satisfies this one — normal for stakeholder / aggregate requirements, which are proven through the requirements that refine them.
Happy-path behavior with valid inputs.
- nominalrecommendedpresent
Behavior at limits, thresholds, and edge-of-range values.
- nominalrecommendedpresentCovered by 5 tests
Behavior when inputs are absent, nil, zero-length, or blank.
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Stakeholder-authored conditions defining when the requirement is satisfied, traced to derived requirements / evidence.
- AC-001verify: analysis
A transcription request forwards only Deepgram-supported params, sends the audio bytes to a well-formed /listen endpoint carrying the model and a Token Authorization header, for any api_base class
Derived requirementsVerification rationaleVerified by analysis of SYS-REQ-260731-DGSY (deepgram_transcription_transform_contract_honored), which decomposes into the param-mapping (DPMP), request-passthrough (DREQ), endpoint (DURL) and auth (DAUT) SW-REQs modeled by the deepgram_param_support, deepgram_listen_endpoint and deepgram_query_param_formatting decision tables; the unit tests assert supported-only forwarding, the /listen endpoint across api_base classes, and the Token header. See specs/software and tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transformation.py
- AC-002verify: analysis
A /listen response is turned back into an OpenAI-shaped transcription selecting the transcript per diarization mode (plain, paragraph, per-word reconstruction), and a malformed response raises a loud ValueError rather than returning a partial transcript
Derived requirementsVerification rationaleVerified by analysis of SYS-REQ-260731-DGSY, which decomposes into the response-extraction (DRSP), parse-failure re-raise (DERR) and diarized-reconstruction (DDIA) SW-REQs modeled by the deepgram_transcript_extraction and deepgram_language_resolution decision tables; the unit tests assert each diarization mode, the detected-language fallback, and the re-raise on a malformed body. See specs/software and the mapped test file
Its place
How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.
Loading graph…
Trace evidence
The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.
No implementation linked
No source files are traced to this requirement yet.
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Requirements (8)
- The Deepgram audio-transcription transform shall honor its…deepgram_audio_transcription · SYS
- transform_audio_transcription_response raises a ValueError…deepgram_audio_transcription · SW
- get_complete_url resolves the effective api_base (falling…deepgram_audio_transcription · SW
- map_openai_params forwards a non-default parameter into the…deepgram_audio_transcription · SW
- transform_audio_transcription_request processes the audio…deepgram_audio_transcription · SW
- transform_audio_transcription_response returns a…deepgram_audio_transcription · SW
- validate_environment resolves the effective api_key as the…deepgram_audio_transcription · SW
- _reconstruct_diarized_transcript groups the per-word…deepgram_audio_transcription · SW
Files to re-check (2)
- audio_transcription.rslitellm-rust/crates/core/src/providers/bedrock/audio_transcription.rs
- transformation.pylitellm/llms/deepgram/audio_transcription/transformation.py
Tests to re-run (1)
- test_deepgram_audio_transcription_transform_baseline.pytests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py
What this rests on
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.