From 93b60a03516dc488719079ebd31671427d5782de Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 30 Apr 2026 17:15:28 -0700 Subject: [PATCH] style: black format assembly_passthrough_logging_handler.py --- .../assembly_passthrough_logging_handler.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py index f09143e4a7e..74491f283a1 100644 --- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py +++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py @@ -205,8 +205,13 @@ class AssemblyAIPassthroughLoggingHandler: if _api_key is None: raise ValueError("AssemblyAI API key not found") try: - if any(c in transcript_id for c in ("/", "\\", "#", "?")) or ".." in transcript_id: - raise ValueError(f"Invalid transcript_id {transcript_id!r}: contains disallowed characters") + if ( + any(c in transcript_id for c in ("/", "\\", "#", "?")) + or ".." in transcript_id + ): + raise ValueError( + f"Invalid transcript_id {transcript_id!r}: contains disallowed characters" + ) safe_transcript_id = urllib.parse.quote(transcript_id, safe="") url = f"{_base_url}/v2/transcript/{safe_transcript_id}" headers = {