Skip to content

Commit 6522d55

Browse files
authored
Fix /v1/audio/transcriptions Bad Request Error (#13811)
1 parent 6ff5186 commit 6522d55

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

requirements-common.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ py-cpuinfo
99
transformers >= 4.48.2 # Required for Bamba model and Transformers backend.
1010
tokenizers >= 0.19.1 # Required for Llama 3.
1111
protobuf # Required by LlamaTokenizer.
12-
fastapi[standard] >= 0.107.0, < 0.113.0; python_version < '3.9'
13-
fastapi[standard] >= 0.107.0, != 0.113.*, != 0.114.0; python_version >= '3.9'
12+
fastapi[standard] >= 0.115.0 # Required by FastAPI's form models in the OpenAI API server's audio transcriptions endpoint.
1413
aiohttp
1514
openai >= 1.52.0 # Ensure modern openai package (ensure types module present and max_completion_tokens field support)
1615
pydantic >= 2.9

vllm/entrypoints/openai/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ class UnloadLoraAdapterRequest(BaseModel):
14481448

14491449
class TranscriptionRequest(OpenAIBaseModel):
14501450
# Ordered by official OpenAI API documentation
1451-
#https://platform.openai.com/docs/api-reference/audio/createTranscription
1451+
# https://platform.openai.com/docs/api-reference/audio/createTranscription
14521452

14531453
file: UploadFile
14541454
"""

0 commit comments

Comments
 (0)