Repository navigation
feat(azure_speech): price fast transcription by the enhancedMode model - #48404
Open
anilkumara9 wants to merge 1 commit into
Open
anilkumara9 wants to merge 1 commit into
anilkumara9 wants to merge 1 commit into
Conversation
anilkumara9
requested review from
joshua-berri,
kerry-berri and
mateo-berri
as code owners
October 26, 2026 12:50
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This was referenced Oct 26, 2026
|
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fast transcription calls that run a MAI-Transcribe model through the Azure Speech pass-through are now logged under the model that actually ran, and priced at that model's rate instead of the standard speech rate. Calls that do not use enhanced mode log and price exactly as they did before
Details
TLDR
Problem this solves:
How it solves it:
User Flow
Before: an operator routes Azure Speech fast transcription through the gateway and their spend logs price a premium model at the standard rate
After: the same call is logged under the model that ran, at that model's rate
Relevant issues
Fixes #48387
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
Screenshots / Proof of Fix
The proof below is unit level with a fabricated multipart request, because a live run needs a real Azure Speech resource and its key, which I do not have. A live proxy run is still owed and this section should be replaced with one before review is requested
Before (dddbbaa8)
After (5cdaa90)
Type
🆕 New Feature
Caveats
Pricing source
Low
Final Attestation
AI assistance disclosure: this change was prepared with AI assistance. Every line was read against the issue and the surrounding code, the new tests failed on main before the change, and the test results above are from local runs the contributor can walk through. The LiteLLM CLA has not been signed yet and will be signed by the contributor when the PR is opened