mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
style: black format assembly_passthrough_logging_handler.py
This commit is contained in:
parent
0100e8d3bf
commit
93b60a0351
1 changed files with 7 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue