mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-13 22:35:32 +08:00
Fix /v1/audio/transcriptions Bad Request Error (#13811)
This commit is contained in:
parent
6ff518626c
commit
6522d55b6f
@ -9,8 +9,7 @@ py-cpuinfo
|
|||||||
transformers >= 4.48.2 # Required for Bamba model and Transformers backend.
|
transformers >= 4.48.2 # Required for Bamba model and Transformers backend.
|
||||||
tokenizers >= 0.19.1 # Required for Llama 3.
|
tokenizers >= 0.19.1 # Required for Llama 3.
|
||||||
protobuf # Required by LlamaTokenizer.
|
protobuf # Required by LlamaTokenizer.
|
||||||
fastapi[standard] >= 0.107.0, < 0.113.0; python_version < '3.9'
|
fastapi[standard] >= 0.115.0 # Required by FastAPI's form models in the OpenAI API server's audio transcriptions endpoint.
|
||||||
fastapi[standard] >= 0.107.0, != 0.113.*, != 0.114.0; python_version >= '3.9'
|
|
||||||
aiohttp
|
aiohttp
|
||||||
openai >= 1.52.0 # Ensure modern openai package (ensure types module present and max_completion_tokens field support)
|
openai >= 1.52.0 # Ensure modern openai package (ensure types module present and max_completion_tokens field support)
|
||||||
pydantic >= 2.9
|
pydantic >= 2.9
|
||||||
|
|||||||
@ -1448,7 +1448,7 @@ AudioResponseFormat: TypeAlias = Literal["json", "text", "srt", "verbose_json",
|
|||||||
|
|
||||||
class TranscriptionRequest(OpenAIBaseModel):
|
class TranscriptionRequest(OpenAIBaseModel):
|
||||||
# Ordered by official OpenAI API documentation
|
# Ordered by official OpenAI API documentation
|
||||||
#https://platform.openai.com/docs/api-reference/audio/createTranscription
|
# https://platform.openai.com/docs/api-reference/audio/createTranscription
|
||||||
|
|
||||||
file: UploadFile
|
file: UploadFile
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user