Merge pull request #15010 from eycjur/fix_vllm_audio_transcription_json_format

[Fix] response_format bug in hosted vllm audio_transcription
This commit is contained in:
Krish Dholakia 2025-09-28 17:47:15 -07:00 committed by GitHub
commit ddb81a6883
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,13 +60,6 @@ class HostedVLLMAudioTranscriptionConfig(OpenAIWhisperAudioTranscriptionConfig):
data = {"model": model, "file": audio_file, **optional_params}
if "response_format" not in data or (
data["response_format"] == "text" or data["response_format"] == "json"
):
data["response_format"] = (
"verbose_json" # ensures 'duration' is received - used for cost calculation
)
return AudioTranscriptionRequestData(
data=data,
)