litellm - ✅(Solved) Fix Error using openai/whisper-1 with OpenRouter provider in LiteLLM v1.83.10 [1 pull requests, 2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27083Fetched 2026-05-04 04:59:12
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×3commented ×2cross-referenced ×1

Error Message

openai.BadRequestError: Error code: 400 - {'error': {'message': "{'error': '/audio/transcriptions: Invalid model name passed in model=whisper-1. Call /v1/models to view available models for your key.'}", 'type': 'None', 'param': 'None', 'code': '400'}}

ValueError: Unmapped provider passed in. Unable to get the response.

Fix Action

Fix / Workaround

  1. Is openai/whisper-1 currently unsupported when using the OpenRouter provider in LiteLLM?
  2. If it's not supported, what is the recommended configuration or workaround to perform audio transcription through LiteLLM with OpenRouter?

PR fix notes

PR #27086: fix: clear error for OpenRouter audio transcription (#27083)

Description (problem / solution / changelog)

Summary

Raises UnsupportedParamsError with a clear message when OpenRouter is used for audio transcription, instead of ValueError: Unmapped provider.

Changes

  • Early validation in litellm.main.transcription() after get_llm_provider
  • Unit tests (sync + async)
  • README note under supported providers table

Related

Closes / fixes #27083

Changed files

  • .github/workflows/check-lazy-openapi-snapshot.yml (modified, +12/-1)
  • README.md (modified, +2/-0)
  • litellm/llms/openrouter/transcription_validation.py (added, +22/-0)
  • litellm/main.py (modified, +8/-0)
  • tests/test_litellm/llms/openai/transcriptions/test_openrouter_transcription_validation.py (added, +59/-0)

Code Example

import os
from pathlib import Path

import litellm

os.environ["OPENROUTER_API_KEY"] = "sk-xxxxxxxxx-Mr-A"
audio_file = Path("test.mp3")

result = litellm.transcription(
    api_key="sk-xxxxxxxxx-Mr-A",
    api_base="https://llm.xx.ir/v1",
    model="openai/whisper-1",
    audio=open("test.mp3", "rb"),
    language="fa",
    response_format="json",
    file=audio_file
)
print(result.text)

---

openai.BadRequestError: Error code: 400 - {'error': {'message': "{'error': '/audio/transcriptions: Invalid model name passed in model=whisper-1. Call `/v1/models` to view available models for your key.'}", 'type': 'None', 'param': 'None', 'code': '400'}}

ValueError: Unmapped provider passed in. Unable to get the response.
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

I am trying to use openai/whisper-1 for audio transcription via the OpenRouter provider. Although the model is configured in the LiteLLM proxy, the request fails with a provider mapping error and a 400 Bad Request.

Questions & Context:

I have reviewed the documentation (https://docs.litellm.ai/docs/audio_transcription) but I'm still facing issues.

  1. Is openai/whisper-1 currently unsupported when using the OpenRouter provider in LiteLLM?
  2. If it's not supported, what is the recommended configuration or workaround to perform audio transcription through LiteLLM with OpenRouter?

Expected Behavior: Successful audio transcription using Whisper-compatible models through OpenRouter.

Actual Behavior: I receive a ValueError: Unmapped provider and an OpenAI BadRequestError indicating an invalid model name.

Steps to Reproduce

  1. Add openai/whisper-1 to LiteLLM models via the Admin UI/config.
  2. Set the provider to openrouter.
  3. Make an audio transcription request (e.g., using the /v1/audio/transcriptions endpoint).
  4. See the error in the logs/response.
import os
from pathlib import Path

import litellm

os.environ["OPENROUTER_API_KEY"] = "sk-xxxxxxxxx-Mr-A"
audio_file = Path("test.mp3")

result = litellm.transcription(
    api_key="sk-xxxxxxxxx-Mr-A",
    api_base="https://llm.xx.ir/v1",
    model="openai/whisper-1",
    audio=open("test.mp3", "rb"),
    language="fa",
    response_format="json",
    file=audio_file
)
print(result.text)

Relevant log output

openai.BadRequestError: Error code: 400 - {'error': {'message': "{'error': '/audio/transcriptions: Invalid model name passed in model=whisper-1. Call `/v1/models` to view available models for your key.'}", 'type': 'None', 'param': 'None', 'code': '400'}}

ValueError: Unmapped provider passed in. Unable to get the response.

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.83.10

Twitter / LinkedIn details

No response

extent analysis

TL;DR

The openai/whisper-1 model might not be supported with the OpenRouter provider in LiteLLM, causing a provider mapping error and 400 Bad Request.

Guidance

  • Verify the supported models for your OpenRouter API key by calling the /v1/models endpoint as suggested in the error message.
  • Check the LiteLLM documentation for any specific configuration or compatibility notes regarding the openai/whisper-1 model and OpenRouter provider.
  • Consider using a different model that is known to be compatible with OpenRouter in LiteLLM for audio transcription.
  • Review the LiteLLM proxy settings to ensure that the model and provider are correctly configured.

Example

No code snippet is provided as the issue seems to be related to model compatibility rather than code syntax.

Notes

The error message suggests that the openai/whisper-1 model may not be available for the provided API key, which could be due to various reasons such as licensing or compatibility issues.

Recommendation

Apply workaround: Use a different model compatible with OpenRouter in LiteLLM for audio transcription, as the openai/whisper-1 model's compatibility is uncertain.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING