mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
Adds the zoom_ai provider for Zoom Scribe Fast, so zoom_ai/<model> works
with litellm.transcription, litellm.atranscription and the proxy's
/v1/audio/transcriptions. Each call uploads the audio and a JSON config to
/v2/aiservices/scribe/transcribe with a ZOOM_AI_API_KEY bearer token and a
per-request x-zm-trackingid. ZOOM_AI_API_BASE overrides the endpoint.
Models are passed through to Scribe, which validates them, so new Scribe
models work without a release. A bare language code becomes its documented
Scribe locale, building on the shared BARE_ISO_639_1_TO_BCP47 map, and a
language-specific model such as zoom-scribe-fr sends its own locale when the
caller sets none. zoom-scribe-multilingual and whisper send continuous
language detection unless the caller chooses a mode.
Scribe options (diarization, word_time_offsets, channel_separation,
profanity_filter, segmentation_mode, vocabulary, vocabulary_id and
language_detection) are decoded from proxy form strings to the types Scribe
expects. Only response_format json is supported for now, and other formats
are rejected before the request is sent.
Cost comes from the seconds Scribe reports as billed, priced by new cost map
rows for the documented models. Errors carry Zoom's JSON reason, and any
other upstream body is left out of the message.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| actions | ||
| assets/scaledown | ||
| codeql | ||
| e2e-stack | ||
| ISSUE_TEMPLATE | ||
| observatory | ||
| prompts | ||
| PULL_REQUEST_TEMPLATE | ||
| screenshots | ||
| scripts | ||
| workflows | ||
| ci-coverage-allowlist.yml | ||
| CODEOWNERS | ||
| dependabot.yaml | ||
| deploy-on-aws.png | ||
| deploy-on-gcp.png | ||
| deploy-to-aws.png | ||
| FUNDING.yml | ||
| issue-labels.json | ||
| mutmut-coverage.rc | ||
| template.yaml | ||