Skip to content

Fix audio cost per second override - #19158

Merged
1 commit merged into
BerriAI:litellm_staging_01_16_2026from
dushyantzz:main
Jan 16, 2026
Merged

1 commit merged into
BerriAI:litellm_staging_01_16_2026from
dushyantzz:main

Conversation

@dushyantzz

Copy link
Copy Markdown
Contributor

Relevant issues

Fixes #19154

Pre-Submission checklist

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

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🐛 Bug Fix
📖 Documentation
✅ Test

Changes

  • Fix audio cost-per-second logic so output_cost_per_second only applies when > 0, and input_cost_per_second still bills even if output is 0.
  • Add a regression test for transcription models configured with input_cost_per_second and output_cost_per_second: 0.
  • Clarify custom pricing docs for cost-per-second behavior and zero output cost.

@vercel

vercel Bot commented Jan 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Jan 15, 2026 10:05pm

Review with Vercel Agent

@CLAassistant

CLAassistant commented Jan 15, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ghost
ghost changed the base branch from main to litellm_staging_01_16_2026 January 16, 2026 19:30
@ghost
ghost merged commit 2a0f87b into BerriAI:litellm_staging_01_16_2026 Jan 16, 2026
5 of 6 checks passed
Sameerlite added a commit that referenced this pull request Jan 19, 2026
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
This pull request was closed.

This branch was successfully deployed

1 active deployment
Preview — 1b245902 Deployed Jan 15, 2026 by vercel[bot]
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.

[Bug]: Whisper Audio cost calculation by input_cost_per_second does not work if output_cost_per_second is set

2 participants