test_transcription

This commit is contained in:
Ishaan Jaff 2024-12-02 23:55:43 -08:00
parent bb61f2792f
commit 1f5387f59e
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:
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:
data[_metadata_variable_name]["requester_metadata"] = copy.deepcopy(
data["metadata"]

View file

@ -58,7 +58,7 @@ from litellm import Router
@pytest.mark.asyncio
@pytest.mark.flaky(retries=3, delay=1)
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(
model=model,