main
py 12 lines 397 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
4
5 from typing import Literal, TypeAlias
6
7 import torch
8
9 ## Protocols for Audio
10 AudioResponseFormat: TypeAlias = Literal["json", "text", "srt", "verbose_json", "vtt"]
11 TranscriptionResponseFormat: TypeAlias = AudioResponseFormat | Literal["diarized_json"]
12 _LONG_INFO = torch.iinfo(torch.long)