Skip to content

feat(proxy): add Amazon Transcribe pass-through with completion-time job pricing - #41515

Merged
yassin-berriai merged 24 commits into
mainfrom
litellm_transcribe_passthrough
Sep 18, 2026
Merged

yassin-berriai merged 24 commits into
mainfrom
litellm_transcribe_passthrough

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • No LiteLLM route for Amazon Transcribe batch jobs
  • Earlier revision logged every Transcribe call at $0
  • Zero spend meant budgets never stopped repeated jobs on proxy AWS credentials

How it solves it:

  • POST /transcribe/{Operation} and SDK-shaped POST /transcribe, SigV4 signed by the proxy
  • transcribe/StartTranscriptionJob gets a cost map entry, input_cost_per_second 0.0001
  • After a job starts, poll GetTranscriptionJob, download the media file from S3 (one download at a time, capped at the 2 GiB Transcribe file-size quota), read its length with libsndfile, write spend
  • Unreadable or never-finishing jobs are charged the 8 hour maximum, failed jobs $0
  • Job types, surcharge features and media formats LiteLLM cannot price are refused before reaching AWS
  • Standard jobs are tagged litellm-owner with the calling key's owner scope, so GetTranscriptionJob and DeleteTranscriptionJob only answer for the key, team or user that started the job (or a proxy admin); ListTranscriptionJobs and the other account-wide operations are proxy admin only
  • Media rewritten in S3 after the job was created is charged the 8 hour maximum instead of the new file's length
  • Keys other than proxy admins may only read media from, and write transcripts to, the S3 buckets listed in general_settings.transcribe_media_buckets, and may not set DataAccessRoleArn or JobExecutionSettings; unset means admin only. The list is editable in the Admin UI (Settings > Router Settings > General Settings) and a value saved there is picked up by the running proxy when config.yaml does not set it

User Flow

Before: a developer with a $0.001 key budget can start as many transcription jobs as they like, the budget never moves

  1. They send POST http://localhost:4000/transcribe/StartTranscriptionJob with {"TranscriptionJobName": "litellm-lit7936-proof", "LanguageCode": "en-US", "MediaFormat": "wav", "Media": {"MediaFileUri": "s3://.../gettysburg.wav"}} and get 200 with "TranscriptionJobStatus": "IN_PROGRESS"
  2. They poll POST http://localhost:4000/transcribe/GetTranscriptionJob until "TranscriptionJobStatus": "COMPLETED"
  3. The key's spend in the UI and in SpendLogs stays at 0 and the StartTranscriptionJob row reads spend 0
  4. They send the byte-identical StartTranscriptionJob again and get 200 again; the same holds for ContentRedaction jobs and StartMedicalTranscriptionJob
  5. Any holder of the key can keep launching AWS-billed jobs with no LiteLLM limit

After: the same key is charged for the audio it transcribed and the next job is refused once the budget is exceeded

  1. A proxy admin lists the team's audio bucket in transcribe_media_buckets, either in config.yaml or in the Admin UI at http://localhost:4000/ui/?page=router-settings (General Settings tab, transcribe_media_buckets row, comma-separated bucket names, Update). Until then a non-admin StartTranscriptionJob gets 403 only a proxy admin may StartTranscriptionJob
  2. They send the same POST http://localhost:4000/transcribe/StartTranscriptionJob and get 200 with "TranscriptionJobStatus": "IN_PROGRESS"
  3. They poll POST http://localhost:4000/transcribe/GetTranscriptionJob until "TranscriptionJobStatus": "COMPLETED"
  4. Within about a minute the StartTranscriptionJob row in SpendLogs reads spend 0.0018 (18 rounded seconds at $0.0001) and the key's spend is 0.0018 of 0.001
  5. They send the byte-identical StartTranscriptionJob again and get 429 Budget has been exceeded! ... Current cost: 0.0018, Max budget: 0.001
  6. On a fresh key, a StartTranscriptionJob with ContentRedaction gets 400 adds a per-second surcharge LiteLLM does not price yet, StartMedicalTranscriptionJob gets 400 is billed per second of audio at a rate LiteLLM does not price yet, and a StartTranscriptionJob pointing at an .mp4 gets 400 can only do for flac, mp3, ogg, wav; none of those jobs appear in AWS
  7. Key, team, user, organization and proxy budgets now bound what a key can spend on Transcribe
  8. A StartTranscriptionJob whose Media.MediaFileUri or OutputBucketName names a bucket that is not listed, or that carries a DataAccessRoleArn, gets 403 unless the key is a proxy admin
  9. Another key's POST /transcribe/GetTranscriptionJob or DeleteTranscriptionJob for that job name gets 404 No transcription job named ... was started through this proxy by the calling key, and its ListTranscriptionJobs gets 403; the proxy admin key can still list and read everything

Relevant issues

Affected release

Linear ticket

Resolves LIT-7936

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Real AWS Transcribe in us-west-2 and a real Postgres, no mocks. The route does not exist on main, so Before is the previous PR head 65d0f3a0 (zero-cost logging) served from a sibling worktree on port 20935, and After is the current tip served from this checkout on port 20936. Both proxies use the same config, database and AWS credentials, and the same request files; the sha256 of each fixture is printed by both arms. Each arm generates a fresh key with max_budget 0.001, and any leftover jobs are deleted directly in AWS before the arm starts so the control leg starts clean. The 17.6 second gettysburg.wav fixture rounds up to 18 billable seconds, so the expected charge is 18 x 0.0001 = 0.0018

Fixtures

$ sha256sum start.json job.json start_redaction.json start_medical.json start_mp4.json
19312339b574e316202ddf149b6a1fda7761f021f83c873354cf70525a252e83  start.json
f3f2295c142bbbadecbf50f52683919c2b45d1b9c03f02ae478775dba941c584  job.json
38b7195e61a1a61905e36dcc6a4392731012875e3b4b89e542319f4fb44006c4  start_redaction.json
7f88a1108cf9691b756b4d1056675eb22bc018a465e3f2d649988159446a6c0f  start_medical.json
ec55c83deffdf0cd3b1d6b3e882d5cff24c7b96096e96536d701b3db8c9f3690  start_mp4.json
$ cat start.json
{"TranscriptionJobName": "litellm-lit7936-proof", "LanguageCode": "en-US", "MediaFormat": "wav", "Media": {"MediaFileUri": "s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}
$ cat job.json
{"TranscriptionJobName": "litellm-lit7936-proof"}
$ cat start_redaction.json
{"TranscriptionJobName": "litellm-lit7936-proof-redaction", "LanguageCode": "en-US", "MediaFormat": "wav", "ContentRedaction": {"RedactionType": "PII", "RedactionOutput": "redacted"}, "Media": {"MediaFileUri": "s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}
$ cat start_medical.json
{"MedicalTranscriptionJobName": "litellm-lit7936-proof-medical", "LanguageCode": "en-US", "MediaFormat": "wav", "Specialty": "PRIMARYCARE", "Type": "CONVERSATION", "OutputBucketName": "litellm-lit7936-transcribe-qa", "Media": {"MediaFileUri": "s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}
$ cat start_mp4.json
{"TranscriptionJobName": "litellm-lit7936-proof-mp4", "LanguageCode": "en-US", "Media": {"MediaFileUri": "s3://litellm-lit7936-transcribe-qa/gettysburg.mp4"}}

Before (65d0f3a)

Control: StartTranscriptionJob on a fresh key with max_budget 0.001

  1. curl -s $BASE/key/generate -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"key_alias":"lit7936-proof-before-1932","max_budget":0.001}' -> key created
  2. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start.json
{"TranscriptionJob":{"CreationTime":1.789673557773E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.78967355779E9,"TranscriptionJobName":"litellm-lit7936-proof","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200
  1. Poll curl -s http://localhost:20935/transcribe/GetTranscriptionJob ... --data-binary @job.json until terminal, then wait 90 s for spend to land
litellm-lit7936-proof COMPLETED
  1. psql $DATABASE_URL -Ac "select model, spend from \"LiteLLM_SpendLogs\" where metadata->>'user_api_key_alias'='lit7936-proof-before-1932' order by \"startTime\""
model|spend
transcribe/StartTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
(6 rows)
  1. psql $DATABASE_URL -Ac "select key_alias, spend, max_budget from \"LiteLLM_VerificationToken\" where key_alias='lit7936-proof-before-1932'"
key_alias|spend|max_budget
lit7936-proof-before-1932|0|0.001
(1 row)
  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/DeleteTranscriptionJob ... --data-binary @job.json -> HTTP 200

Repeat: byte-identical StartTranscriptionJob on the same key

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start.json
{"TranscriptionJob":{"CreationTime":1.789673663634E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.789673663651E9,"TranscriptionJobName":"litellm-lit7936-proof","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200
  1. Same two psql queries
model|spend
transcribe/StartTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/DeleteTranscriptionJob|0
transcribe/StartTranscriptionJob|0
(8 rows)

key_alias|spend|max_budget
lit7936-proof-before-1932|0|0.001
(1 row)

Surcharge class: StartTranscriptionJob with ContentRedaction

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_redaction.json
{"TranscriptionJob":{"ContentRedaction":{"RedactionOutput":"redacted","RedactionType":"PII"},"CreationTime":1.789673668809E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.789673668828E9,"TranscriptionJobName":"litellm-lit7936-proof-redaction","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200

Unpriced operation class: StartMedicalTranscriptionJob

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/StartMedicalTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_medical.json
{"MedicalTranscriptionJob":{"CreationTime":1.78967366896E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","MedicalTranscriptionJobName":"litellm-lit7936-proof-medical","Specialty":"PRIMARYCARE","StartTime":1.789673668977E9,"TranscriptionJobStatus":"IN_PROGRESS","Type":"CONVERSATION"}}
HTTP 200

Unmeasurable media class: StartTranscriptionJob pointing at an mp4

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20935/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_mp4.json
{"__type":"BadRequestException","Message":"The URI that you provided doesn't point to an S3 object. Make sure that the object exists and try your request again."}
HTTP 400
  1. The error is AWS's own: the proxy signed the request with its AWS credentials and forwarded it without looking at the media format. select model, spend from "LiteLLM_SpendLogs" where metadata->>'user_api_key_alias'='lit7936-proof-before-mp4-2107' -> one row, spend 0

After (3f82479, the current tip, served from this checkout after a restart on that commit; its config.yaml lists litellm-lit7936-transcribe-qa and litellm-lit7936.transcribe.qa in transcribe_media_buckets)

Control: StartTranscriptionJob on a fresh key with max_budget 0.001

  1. curl -s $BASE/key/generate -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"key_alias":"lit7936-proof-after-0245","max_budget":0.001}' -> key created
  2. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start.json
{"TranscriptionJob":{"CreationTime":1.789699559579E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.789699559618E9,"Tags":[{"Key":"litellm-owner","Value":"key:a412524070609c510a97799f02e757cd6b0e1d5d237f1b648068580781bdc4b8"}],"TranscriptionJobName":"litellm-lit7936-proof","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200

The Tags member was added by the proxy; start.json has none

  1. Poll curl -s http://localhost:20936/transcribe/GetTranscriptionJob ... --data-binary @job.json until terminal, then wait 90 s for spend to land
litellm-lit7936-proof COMPLETED
  1. psql $DATABASE_URL -Ac "select model, spend from \"LiteLLM_SpendLogs\" where metadata->>'user_api_key_alias'='lit7936-proof-after-0245' order by \"startTime\""
model|spend
transcribe/StartTranscriptionJob|0.0018
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
(6 rows)
  1. psql $DATABASE_URL -Ac "select key_alias, spend, max_budget from \"LiteLLM_VerificationToken\" where key_alias='lit7936-proof-after-0245'"
key_alias|spend|max_budget
lit7936-proof-after-0245|0.0018|0.001
(1 row)
  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/DeleteTranscriptionJob ... --data-binary @job.json
{"error":{"message":"Budget has been exceeded! Key=lit7936-proof-after-0245 (sk-...5sMA) Current cost: 0.0018000000000000002, Max budget: 0.001","type":"budget_exceeded","param":null,"code":"429"}}
HTTP 429

Repeat: byte-identical StartTranscriptionJob on the same key

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start.json
{"error":{"message":"Budget has been exceeded! Key=lit7936-proof-after-0245 (sk-...5sMA) Current cost: 0.0018000000000000002, Max budget: 0.001","type":"budget_exceeded","param":null,"code":"429"}}
HTTP 429
  1. Same two psql queries a moment later: the 429 refusals (the delete above and this repeat) are logged as rows with no model and spend 0, key spend is unchanged
model|spend
transcribe/StartTranscriptionJob|0.0018
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
|0
|0
(8 rows)

key_alias|spend|max_budget
lit7936-proof-after-0245|0.0018|0.001
(1 row)

Surcharge class: StartTranscriptionJob with ContentRedaction

On the exhausted key this leg returns the same 429 budget error, so this and the next two legs are shown on a fresh key lit7936-proof-gates-0123 with max_budget 0.001 and spend 0, so the route gate answers rather than the budget check. After the three legs select model, spend from "LiteLLM_SpendLogs" where metadata->>'user_api_key_alias'='lit7936-proof-gates-0123' returns (0 rows): a refused job writes no spend row

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_redaction.json
{"detail":"StartTranscriptionJob with ContentRedaction adds a per-second surcharge LiteLLM does not price yet; remove it to submit the job through this route"}
HTTP 400
  1. aws transcribe list-transcription-jobs --region us-west-2 --job-name-contains litellm-lit7936-proof-redaction --query 'TranscriptionJobSummaries[].TranscriptionJobName' -> []

Unpriced operation class: StartMedicalTranscriptionJob

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartMedicalTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_medical.json
{"detail":"StartMedicalTranscriptionJob is billed per second of audio at a rate LiteLLM does not price yet, so it cannot be submitted through this route; only StartTranscriptionJob is priced and budgeted"}
HTTP 400
  1. aws transcribe list-medical-transcription-jobs --region us-west-2 --job-name-contains litellm-lit7936-proof-medical --query 'MedicalTranscriptionJobSummaries[].MedicalTranscriptionJobName' -> []

Unmeasurable media class: StartTranscriptionJob pointing at an mp4

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_mp4.json
{"detail":"LiteLLM bills a transcription job by reading the length of the media file, which it can only do for flac, mp3, ogg, wav; set MediaFormat to one of those or point Media.MediaFileUri at a file with that extension"}
HTTP 400
  1. aws transcribe list-transcription-jobs --region us-west-2 --job-name-contains litellm-lit7936-proof --query 'TranscriptionJobSummaries[].TranscriptionJobName' -> ["litellm-lit7936-proof"], only the control job exists (the dotted-bucket job below had not been started yet). The request never reached AWS: the refusal text is LiteLLM's, not AWS's, and the mp4 leg on Before got AWS's BadRequestException instead

Dotted bucket name: StartTranscriptionJob with media in s3://litellm-lit7936.transcribe.qa/

Bugbot flagged that a bucket with dots in its name cannot be read through the virtual-hosted S3 hostname (its TLS certificate is a single-level wildcard), so the duration read failed and the job was charged the maximum. Reproduced on 16500bd (key lit7936-proof-dotted-before-2151): the job completed, the proxy log had three certificate verify failed errors against litellm-lit7936.transcribe.qa.s3.us-west-2.amazonaws.com, and the spend row was transcribe/StartTranscriptionJob|2.88. Same fixture on the current tip (fresh key lit7936-proof-dotted-after-0123, no budget):

  1. curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' --data-binary @start_dotted.json
{"TranscriptionJobName": "litellm-lit7936-proof-dotted", "LanguageCode": "en-US", "MediaFormat": "wav", "Media": {"MediaFileUri": "s3://litellm-lit7936.transcribe.qa/gettysburg.wav"}}
{"TranscriptionJob":{"CreationTime":1.789694587427E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936.transcribe.qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.78969458746E9,"Tags":[{"Key":"litellm-owner","Value":"key:a6d30b4326d457d7f3c954e55542f7cfcbdf04bf13cbd2632520a4feef82b2f0"}],"TranscriptionJobName":"litellm-lit7936-proof-dotted","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200
  1. Poll GetTranscriptionJob to COMPLETED, wait for the spend write, then psql $DATABASE_URL -Ac "select model, spend from \"LiteLLM_SpendLogs\" where metadata->>'user_api_key_alias'='lit7936-proof-dotted-after-0123' and model like '%Start%'"
model|spend
transcribe/StartTranscriptionJob|0.0018
(1 row)

grep -c 'certificate verify failed' on the proxy log -> 0, and the job is charged the same 18 s as the plain bucket. The path-style URL https://s3.us-west-2.amazonaws.com/litellm-lit7936.transcribe.qa/gettysburg.wav that dotted names resolve to is asserted by unit tests

Job ownership: two virtual keys and the proxy admin key

Veria flagged that any key could read, list or delete any job in the AWS account. Captured on the current tip. Two fresh keys with no team and max_budget 0.01 (lit7936-owner-a-012443 as KEY_A, lit7936-owner-b-012443 as KEY_B), sk-1234 is the proxy admin key

  1. KEY_A starts the standard job; the proxy adds the owner tag and AWS stores it
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY_A' -H 'Content-Type: application/json' -d '{"TranscriptionJobName": "litellm-lit7936-proof", "LanguageCode": "en-US", "MediaFormat": "wav", "Media": {"MediaFileUri": "s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}'
{"TranscriptionJob":{"CreationTime":1.789694684386E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.789694684429E9,"Tags":[{"Key":"litellm-owner","Value":"key:f975d3c1b109b2410163ff3bc10926304a536d0df3092e6e66b476fbbcd47c85"}],"TranscriptionJobName":"litellm-lit7936-proof","TranscriptionJobStatus":"IN_PROGRESS"}
HTTP 200

$ aws transcribe list-tags-for-resource --region us-west-2 --resource-arn arn:aws:transcribe:us-west-2:$ACCOUNT:transcription-job/litellm-lit7936-proof
[
    {
        "Key": "litellm-owner",
        "Value": "key:f975d3c1b109b2410163ff3bc10926304a536d0df3092e6e66b476fbbcd47c85"
    }
]
  1. KEY_B cannot read or delete KEY_A's job, KEY_A can read its own. KEY_A's own DeleteTranscriptionJob passed the ownership check and reached AWS, which answered with its own 400 The job couldn't be deleted. Make sure it exists and isn't pending. because the job was still running
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/GetTranscriptionJob -H 'Authorization: Bearer $KEY_B' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof"}'
{"detail":"No transcription job named litellm-lit7936-proof was started through this proxy by the calling key"}
HTTP 404

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/DeleteTranscriptionJob -H 'Authorization: Bearer $KEY_B' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof"}'
{"detail":"No transcription job named litellm-lit7936-proof was started through this proxy by the calling key"}
HTTP 404

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/GetTranscriptionJob -H 'Authorization: Bearer $KEY_A' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof"}'
{"TranscriptionJob":{"CreationTime":1.789694684386E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","MediaSampleRateHertz":22050,"Settings":{"ChannelIdentification":false,"ShowAlternatives":false},"StartTime":1.789694684429E9,"Tags":[{"Key":"litellm-owner","Value":"key:f975d3c1b109b2410163ff3bc10926304a536d0df3092e6e66b476fbb...
HTTP 200
  1. Account-wide operation: virtual key refused, proxy admin allowed
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/ListTranscriptionJobs -H 'Authorization: Bearer $KEY_B' -H 'Content-Type: application/json' -d '{"JobNameContains":"litellm-lit7936"}'
{"detail":"ListTranscriptionJobs reaches every Amazon Transcribe resource in the AWS account, so only a proxy admin may call it; other keys may StartTranscriptionJob and DeleteTranscriptionJob or GetTranscriptionJob for the jobs they started"}
HTTP 403

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/ListTranscriptionJobs -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' -d '{"JobNameContains":"litellm-lit7936"}'
{"NextToken":"3/hduhM8jl...
HTTP 200
  1. The caller cannot supply the owner tag
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY_B' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof-spoof","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"LanguageCode":"en-US","Tags":[{"Key":"litellm-owner","Value":"user-a"}]}'
{"detail":"The litellm-owner tag is assigned by LiteLLM and cannot be supplied by the caller"}
HTTP 400
  1. KEY_A's job was still priced at completion: select model, spend from "LiteLLM_SpendLogs" where metadata->>'user_api_key_alias'='lit7936-owner-a-012443' -> transcribe/StartTranscriptionJob|0.0018, key spend 0.0018 of 0.01

Storage allowlist set from the Admin UI: media and output buckets for non-admin keys

Bugbot flagged that any virtual key could point a job at any S3 object the proxy's credentials can read and write the transcript to any bucket they can write. Captured on the current tip served from this checkout with a second config.yaml that has no transcribe_media_buckets (only master_key, database_url, store_model_in_db: true), so the value comes from the database the Admin UI writes to. /config/field/update and /config/field/delete are the calls the General Settings table makes on Update and Reset; the same rows appear at http://localhost:4000/ui/?page=router-settings under the General Settings tab. Non-admin key lit7936-ui-0107 with max_budget 0.01

  1. Nothing configured: the setting reads None and the non-admin key is refused
$ curl -s 'http://localhost:20936/config/list?config_type=general_settings' -H 'Authorization: Bearer sk-1234' | python3 -c 'import json,sys;print([(r["field_type"], r["field_value"], r["stored_in_db"]) for r in json.load(sys.stdin) if r["field_name"]=="transcribe_media_buckets"])'
[('List', None, None)]

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof","LanguageCode":"en-US","MediaFormat":"wav","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}'
{"detail":"general_settings.transcribe_media_buckets is not a list of S3 bucket names, so only a proxy admin may StartTranscriptionJob; list the buckets other keys may read media from and write transcripts to"}
HTTP 403
  1. The admin saves the bucket in the General Settings table (the dashboard sends the comma-separated text as a string array), the proxy picks it up on its next DB config reload
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/config/field/update -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' -d '{"field_name":"transcribe_media_buckets","field_value":["litellm-lit7936-transcribe-qa"],"config_type":"general_settings"}'
{"param_name":"general_settings","param_value":{"transcribe_media_buckets":["litellm-lit7936-transcribe-qa"]},"last_run_at":null,"reload_revision":0}
HTTP 200

$ curl -s 'http://localhost:20936/config/list?config_type=general_settings' -H 'Authorization: Bearer sk-1234' | python3 -c 'import json,sys;print([(r["field_type"], r["field_value"], r["stored_in_db"]) for r in json.load(sys.stdin) if r["field_name"]=="transcribe_media_buckets"])'
[('List', ['litellm-lit7936-transcribe-qa'], True)]
  1. The byte-identical request from the same non-admin key is now accepted, and a job that names an unlisted media bucket, an unlisted output bucket, or its own role is refused
$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof","LanguageCode":"en-US","MediaFormat":"wav","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"}}'
{"TranscriptionJob":{"CreationTime":1.789693691582E9,"LanguageCode":"en-US","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"MediaFormat":"wav","StartTime":1.789693691623E9,"Tags":[{"Key":"litellm-owner","Value":"key:a5e90b9c6c7cebb4b7cf260b3e89a99f61d3b260ba096d171fecfd0c183fad72"}],"TranscriptionJobName":"litellm-lit7936-proof","TranscriptionJobStatus":"IN_PROGRESS"}}
HTTP 200

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof-other","LanguageCode":"en-US","MediaFormat":"wav","Media":{"MediaFileUri":"s3://some-other-bucket/gettysburg.wav"}}'
{"detail":"Media.MediaFileUri must name one of the S3 buckets in general_settings.transcribe_media_buckets (litellm-lit7936-transcribe-qa), as s3://bucket/key for media"}
HTTP 403

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof-other","LanguageCode":"en-US","MediaFormat":"wav","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"OutputBucketName":"some-other-bucket"}'
{"detail":"OutputBucketName must name one of the S3 buckets in general_settings.transcribe_media_buckets (litellm-lit7936-transcribe-qa), as s3://bucket/key for media"}
HTTP 403

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/transcribe/StartTranscriptionJob -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"TranscriptionJobName":"litellm-lit7936-proof-other","LanguageCode":"en-US","MediaFormat":"wav","Media":{"MediaFileUri":"s3://litellm-lit7936-transcribe-qa/gettysburg.wav"},"DataAccessRoleArn":"arn:aws:iam::123456789012:role/reader"}'
{"detail":"DataAccessRoleArn would run the job under a role other than the proxy's own AWS credentials, so only a proxy admin may set it"}
HTTP 403
  1. The accepted job completes and is priced like every other standard job, then the admin resets the field and the proxy is back to admin only
$ psql $DATABASE_URL -Ac "select model, spend from \"LiteLLM_SpendLogs\" where metadata->>'user_api_key_alias'='lit7936-ui-0107' order by \"startTime\""
model|spend
transcribe/StartTranscriptionJob|0.0018
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
transcribe/GetTranscriptionJob|0
(5 rows)

$ curl -s -w '\nHTTP %{http_code}\n' http://localhost:20936/config/field/delete -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' -d '{"field_name":"transcribe_media_buckets","config_type":"general_settings"}'
{"param_name":"general_settings","param_value":{},"last_run_at":null,"reload_revision":0}
HTTP 200

Which handler branch each leg exercised: the control leg goes through transcribe_proxy_route (gate passes), the pass-through success path, and the completion-time pricing task (poll to COMPLETED, Media.MediaFileUri downloaded from S3 with the proxy's SigV4, libsndfile length 17.58 s rounded to 18 s). The repeat leg is refused by the existing key budget check before the route body runs. The ContentRedaction leg is refused by the surcharge branch of the route gate, the medical leg by the unpriced-operation branch, the mp4 leg by the media-format branch, all before SigV4 signing. The storage legs exercise transcribe_storage_refusal (unset list, unlisted media bucket, unlisted output bucket, caller-supplied role), which runs before the ownership transformation and before signing. The ownership legs exercise transcribe_owned_start_request (tag added, caller-supplied tag refused), transcribe_job_access_refusal (owner match, non-owner 404, admin bypass) and transcribe_admin_only_refusal (403 for a virtual key, pass for the admin). The FAILED job branch, the polling-timeout branch, the unreadable-media branch, the rewritten-media branch, the non-AWS-host branch and the fail-closed lookup-error branch are covered by unit tests only; they were not driven live

Pricing source, read from the raw AWS Price List offer file on 2026-09-17 (https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/transcribe/current/index.json, publication 2026-09-11): every *-TranscribeAudio usage type is 0.0001000000 USD per second from range 0, in all 26 regions listed. *-MedicalTranscribeAudio is 0.00125, *-CallAnalyticsTranscribeAudio 0.0005, *-RedactionTranscribeAudio adds 0.00004 and *-ToxicityDetectionTranscribeAudio adds 0.00006, which is why those classes are refused rather than priced at the standard rate

Type

New Feature

Caveats (if any)

Medium

  • Spend lands at job completion, so jobs started before the first charge is written are not stopped by the budget; rpm_limit on the key bounds that window
  • A proxy restart while a job is being polled drops that job's spend write; it is not retried
  • Only the first-tier rate is charged; AWS volume tiers beyond 250k minutes per month are not modeled, so heavy users are charged slightly more than AWS bills

Low

  • Polling runs for at most 720 x 10 s (2 hours); a job still running after that is charged the 8 hour maximum (28800 s, the Transcribe standard batch audio length quota) rather than its real duration
  • The proxy credentials need s3:GetObject on the bucket in Media.MediaFileUri to read the duration; without it the job is charged the maximum. Buckets with dots in their name are read through the region's path-style endpoint, plain names through the virtual-hosted one
  • The media file is downloaded once to a temporary file to read its length, then deleted. Downloads run one at a time per worker (TRANSCRIBE_MEDIA_DOWNLOAD_CONCURRENCY) and stop at TRANSCRIBE_MAX_MEDIA_BYTES (2 GiB, the Transcribe file-size quota), checked against Content-Length before the transfer and against bytes written during it; a larger object is charged the eight hour maximum instead of being read. The temporary file can exceed the cap by at most one streamed chunk before the download is cut off
  • Only media libsndfile can read (flac, mp3, ogg, wav) is accepted; mp4, m4a, webm and amr jobs are refused with a 400 rather than forwarded unpriced
  • Pricing trusts GetTranscriptionJob to echo the Media.MediaFileUri the job was started with; a response without it is charged the maximum
  • StartMedicalScribeJob and StartCallAnalyticsJob were gated from the same allowlist as StartMedicalTranscriptionJob but only the medical transcription job was driven live
  • transcribe_media_buckets is a plain bucket allowlist: every non-admin key shares the same set of buckets, and within a listed bucket any object key may be named. The setting is read from the running proxy's general_settings, so a value saved in the Admin UI takes effect on the next DB config reload (about 10 s to a minute), and config.yaml wins when it sets the field
  • The owner recorded on a job is the key's primary resource owner scope (team, then user, then key hash, the same order get_primary_resource_owner_scope uses elsewhere), so every key in a team can read and delete the team's jobs. Jobs started outside the proxy, or by an earlier revision of this branch, carry no tag and answer 404 to non-admin keys
  • The ownership check on GetTranscriptionJob and DeleteTranscriptionJob costs one extra GetTranscriptionJob call to AWS per request; a failure of that lookup is treated as not found (fail closed)
  • The rewritten-media check compares S3 Last-Modified (whole seconds) with the job CreationTime allowing TRANSCRIBE_MEDIA_LAST_MODIFIED_TOLERANCE_SECONDS (1 s) of slack, so an object overwritten within the same second the job was created is still measured

Taxonomy audit of the diff (D, P, Z auth; E, AA spend; F, U, V, W, X provider; T tests; H lint). Confirmed and fixed: D1/Z3, any key could read, list or delete every Transcribe job in the AWS account, now scoped by an owner tag the proxy writes and the caller cannot supply, with account-wide operations admin only; D4/Z2, an AWS error during the ownership lookup answers 404 rather than widening access, and the refusal is computed before SigV4 signing so an unauthorised body is never signed; P2, the owner scope is resolved with the existing get_primary_resource_owner_scope and user_can_access_resource_owner helpers rather than a new comparison; E1/AA1, billable job persisted at 0 cost, now priced at completion with a fail-closed maximum; F3, sibling billable operations (StartMedicalTranscriptionJob, StartMedicalScribeJob, StartCallAnalyticsJob) and the surcharge members on StartTranscriptionJob are refused rather than silently priced at the wrong rate; E5/X1, the cost map entry is validated with a strict Pydantic model so a missing or non-numeric rate refuses the job instead of falling back to 0; T1, every pricing and gating test fails on the previous head (mutation checked with cp restore and cmp -s); E2, a job whose media cannot be measured is refused before submission when the format is known up front, and charged the eight hour maximum when the measurement fails after the fact, so inability to price never becomes a zero charge; AA3, a caller who points a job at a very large S3 object cannot fill the worker's disk, since downloads are bounded by size before and during streaming and serialised through a semaphore, covered by tests on write_media_within_limit. V1, the media URL comes from the caller's request, so the S3 signature is only computed for hosts under the proxy region's AWS DNS suffix and any other host is treated as unreadable and charged the maximum, covered by a test with a userinfo-spoofed host; rechecked after the dotted-bucket fix, the path-style host s3.<region>.<dns suffix> is still inside the partition and test_dotted_bucket_maps_to_the_regional_path_style_endpoint pins it. Z1/X1, the storage allowlist treats an unset, empty or malformed transcribe_media_buckets as nothing granted for non-admin keys rather than falling back to allow all, validated with a strict TypeAdapter; D3, the allowlist is bypassed only for the proxy admin role resolved from UserAPIKeyAuth, and the caller cannot widen it by passing DataAccessRoleArn or JobExecutionSettings; L1/A5, the Admin UI edits the setting through the existing /config/field/update and /config/list endpoints (new List field type rendered as comma-separated text, sent as a JSON array), and the running proxy reads the DB value into general_settings on config reload unless config.yaml owns the key, covered by test_ProxyConfig__update_general_settings_applies_db_transcribe_media_buckets and its YAML precedence sibling. H8, the new Pydantic field lives in the general_settings JSON column, so no Prisma column is needed; H7, the prebuilt UI bundle under litellm/proxy/_experimental/out is refreshed on main by the periodic chore: update Next.js build artifacts commits rather than on feature PRs, and schema.d.ts plus the OpenAPI snapshot were regenerated with npm run gen:api and python -m litellm.proxy._lazy_openapi_snapshot. Judged not applicable: W1, the request body is parsed once and passed read-only as Mapping, headers are MappingProxyType; U/X on the success path, pricing is scheduled only for status < 400 responses (existing pass-through behaviour) so a ConflictException on job start is never charged; H, no Optional, no bare dict/Any, constants live in constants.py, no docs in the source repo (docs are in BerriAI/litellm-docs#1506), no new source comments beyond tool-directed suppressions

Dependents of the changed shared code, checked live on 393d084 and again on the current tip 3f82479 for the Transcribe control leg above (the tip differs from 393d084 in the dashboard General Settings component, where emptying a List row and clicking Update now calls /config/field/delete like a Select reset, covered by general_settings.integration.test.tsx; in the pricing handler, where the fallback record for a job that is deleted before polling reaches a terminal status is parsed from the StartTranscriptionJob body the success handler already holds, because the shared pass-through success path always passes result="" and the previous revision's httpx_response.text raises httpx.ResponseNotRead once the relay has streamed and closed the response, so such jobs were charged the eight hour maximum instead of their media length; and in _should_buffer_passthrough_response, which now buffers application/x-amz-json-1.1 bodies like application/json so the AWS JSON protocol responses reach spend logging parsed, while jsonl and octet-stream bodies are still relayed chunk by chunk (test_pass_through_request_relays_non_json_body_without_buffering). test_pass_through_success_handler_prices_a_relayed_start_response_from_its_parsed_body drives the real success handler with a streamed and closed httpx.Response and fails on the previous revision, and test_pass_through_request_json_response_stays_buffered_for_logging[application/x-amz-json-1.1] fails without the buffering change): _resolve_comprehend_medical_region was renamed to _resolve_aws_passthrough_region with an unchanged body, and PassThroughEndpointLogging.__init__ gained two optional injected dependencies (the Transcribe handler and the log dispatch callable); both are only reached by comprehend_medical_proxy_route and the three zero-argument constructors. POST /comprehendmedical/DetectEntitiesV2 on the same text returned 200 with the same entities and wrote one comprehendmedical/DetectEntitiesV2|pass_through_endpoint|0.01 spend row on both proxies, so the sibling pass-through and its logging path are unchanged. The new cost map entry uses a litellm_provider that is not in LlmProviders, like agentcore, tavily and about twenty others; litellm.get_model_info("transcribe/StartTranscriptionJob") returns the rate and GET /public/litellm_model_cost_map serves it. No untested dependent was left unexercised

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

ran /live-pr-risk and found no regressions/backward incompatible risks

  • 3f82479 passes /live-pr-risk (the Transcribe control and budget legs above were re-run on this exact tip; the only shared-code change since 393d084 is the AWS JSON buffering predicate, whose sole pass-through producer of that media type in this repo is the Transcribe route, and the other deltas are the deleted-job fallback input and the dashboard List reset)

Note

High Risk
Introduces AWS credential passthrough, S3 reads for pricing, and security-sensitive job/bucket scoping plus deferred spend that affects budgets; misconfiguration could over-charge or block legitimate jobs.

Overview
Adds Amazon Transcribe as a SigV4 proxy pass-through at POST /transcribe and POST /transcribe/{operation} (plus routing/OpenAPI/ingress wiring), forwarding AWS JSON 1.1 calls on the proxy’s credentials.

Billing charges StartTranscriptionJob after the job finishes: poll GetTranscriptionJob, download the referenced S3 media (bounded size/concurrency), measure duration with libsndfile for supported formats, and write spend from a new transcribe/StartTranscriptionJob cost-map rate. Unpriced job types, surcharge features, and non-measurable media are rejected before AWS; pricing failures fail closed to the 8-hour maximum.

Access control tags jobs with litellm-owner, restricts get/delete to the starter (or admin), limits account-wide APIs to proxy admins, and gates non-admin media/output to general_settings.transcribe_media_buckets (editable in Router Settings as a List). Pass-through buffering now treats application/x-amz-json* like JSON so Transcribe responses can be logged.

Reviewed by Cursor Bugbot for commit 3f82479. Bugbot is set up for automated code reviews on this repo. Configure here.

Link to Devin session: https://app.devin.ai/sessions/384cb1b5491d432b9475a8ff09fcc9fc
Open in Devin Desktop: https://app.devin.ai/desktop/session/384cb1b5491d432b9475a8ff09fcc9fc?variant=devin
Requested by: @yassin-berriai

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@codspeed

codspeed Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_transcribe_passthrough (3b8f887) with main (db756b9)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (d42f448) during the generation of this report, so db756b9 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@greptile-apps

greptile-apps Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness, security, or repository-rule findings.

Findings

  1. P2 Private Method Replaced ▶

Summary

This PR adds an authenticated Amazon Transcribe pass-through with completion-time pricing, ownership enforcement, restricted S3 access, and administrative configuration.

  • Prices standard transcription jobs after completion and applies spend to existing budget accounting.
  • Rejects unsupported pricing classes and media formats before sending requests to AWS.
  • Restricts job access through proxy-assigned owner tags and limits account-wide operations to administrators.
  • Adds configurable media/output bucket restrictions and corresponding Admin UI support.
  • Fixes successful AWS JSON 1.1 responses so their parsed bodies remain available to Transcribe spend logging.

Reviews (17) · Last reviewed commit: "fix(proxy): price a Transcribe job from ..."

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@codecov

codecov Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.72300% with 31 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...handlers/transcribe_passthrough_logging_handler.py 91.66% 29 Missing ⚠️
...ass_through_endpoints/llm_passthrough_endpoints.py 96.07% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

yassin-berriai and others added 2 commits September 17, 2026 00:44
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread gateway/routes/allowlist.py Resolved
…operation from test

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

…x lists

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@veria-ai please review 2decf37: deleted-job pricing fallback now reads the relayed StartTranscriptionJob body, so check the eight hour maximum charge path and spend logging

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…tead of the relayed httpx body

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@veria-ai please review 3f82479: StartTranscriptionJob pricing now reads the parsed response body before the relay closes it, and AWS JSON responses are buffered for spend logging

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3f82479. Configure here.

yassin-berriai and others added 2 commits September 18, 2026 17:54
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@yassin-berriai
yassin-berriai merged commit f129e7e into main Sep 18, 2026
87 of 89 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_transcribe_passthrough branch September 18, 2026 18:35
Stanley00 pushed a commit to stanley-fork/litellm that referenced this pull request Sep 19, 2026
BerriAI#41515 added the cost map entry transcribe/StartTranscriptionJob under a
new litellm_provider value "transcribe" without registering that provider
anywhere else, so litellm.models_by_provider had no "transcribe" key.

test_models_by_provider derives its provider set from the cost map itself,
so it went red on main. The user-visible half is that get_provider_models
returned None for the provider, which get_known_models_from_wildcard turns
into an empty list, leaving a transcribe/* key or team grant resolving to
no models.

Mirror the aws_polly registration: an enum member, a model set, an
ingestion branch, and a models_by_provider entry. Amazon Transcribe is
reached through the pass-through route rather than the Add Model form, so
it joins the frozen unlisted set the Add Model drift test tracks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants