Set the response_format as it is

This commit is contained in:
eycjur 2025-09-29 08:11:24 +09:00
parent 35c14f7178
commit 070094c739

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,
)