forked from phoenix/litellm-mirror
fix: fix linting error
This commit is contained in:
parent
5be647dd76
commit
aed1cd3283
2 changed files with 5 additions and 3 deletions
|
@ -4729,7 +4729,7 @@ def transcription(
|
|||
response_format: Optional[
|
||||
Literal["json", "text", "srt", "verbose_json", "vtt"]
|
||||
] = None,
|
||||
timestamp_granularities: List[Literal["word", "segment"]] = None,
|
||||
timestamp_granularities: Optional[List[Literal["word", "segment"]]] = None,
|
||||
temperature: Optional[int] = None, # openai defaults this to 0
|
||||
## LITELLM PARAMS ##
|
||||
user: Optional[str] = None,
|
||||
|
|
|
@ -53,9 +53,11 @@ from litellm import Router
|
|||
)
|
||||
@pytest.mark.parametrize("response_format", ["json", "vtt"])
|
||||
@pytest.mark.parametrize("sync_mode", [True, False])
|
||||
@pytest.mark.parametrize("timestamp_granularities", [["word"], ["segment"]])
|
||||
@pytest.mark.parametrize("timestamp_granularities", [None, ["word"], ["segment"]])
|
||||
@pytest.mark.asyncio
|
||||
async def test_transcription(model, api_key, api_base, response_format, sync_mode, timestamp_granularities):
|
||||
async def test_transcription(
|
||||
model, api_key, api_base, response_format, sync_mode, timestamp_granularities
|
||||
):
|
||||
if sync_mode:
|
||||
transcript = litellm.transcription(
|
||||
model=model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue