Check for existing issues
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.
- Is
openai/whisper-1 currently unsupported when using the OpenRouter provider in LiteLLM?
- 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
- Add
openai/whisper-1 to LiteLLM models via the Admin UI/config.
- Set the provider to
openrouter.
- Make an audio transcription request (e.g., using the
/v1/audio/transcriptions endpoint).
- 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
Check for existing issues
What happened?
I am trying to use
openai/whisper-1for 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.
openai/whisper-1currently unsupported when using the OpenRouter provider in LiteLLM?Expected Behavior:
Successful audio transcription using Whisper-compatible models through OpenRouter.
Actual Behavior:
I receive a
ValueError: Unmapped providerand an OpenAI BadRequestError indicating an invalid model name.Steps to Reproduce
openai/whisper-1to LiteLLM models via the Admin UI/config.openrouter./v1/audio/transcriptionsendpoint).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