test_transcription
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 45s

This commit is contained in:
Ishaan Jaff 2024-12-02 23:55:43 -08:00
parent caab04be31
commit 04238cd9a9
2 changed files with 2 additions and 2 deletions

View file

@ -427,7 +427,7 @@ async def add_litellm_data_to_request( # noqa: PLR0915
if _metadata_variable_name not in data: if _metadata_variable_name not in data:
data[_metadata_variable_name] = {} data[_metadata_variable_name] = {}
# We want to log the "metadata" from the client side request. Avoid circular reference by not directly assigning metadata to itself # We want to log the "metadata" from the client side request. Avoid circular reference by not directly assigning metadata to itself.
if "metadata" in data and data["metadata"] is not None: if "metadata" in data and data["metadata"] is not None:
data[_metadata_variable_name]["requester_metadata"] = copy.deepcopy( data[_metadata_variable_name]["requester_metadata"] = copy.deepcopy(
data["metadata"] data["metadata"]

View file

@ -58,7 +58,7 @@ from litellm import Router
@pytest.mark.asyncio @pytest.mark.asyncio
@pytest.mark.flaky(retries=3, delay=1) @pytest.mark.flaky(retries=3, delay=1)
async def test_transcription( async def test_transcription(
model, api_key, api_base, response_format, sync_mode, timestamp_granularities model, api_key, api_base, response_format, timestamp_granularities
): ):
transcript = await litellm.atranscription( transcript = await litellm.atranscription(
model=model, model=model,