refactor: add black formatting

This commit is contained in:
Krrish Dholakia 2023-12-25 14:10:38 +05:30
parent b87d630b0a
commit 4905929de3
156 changed files with 19723 additions and 10869 deletions

View file

@ -56,8 +56,8 @@ def timeout(timeout_duration: float = 0.0, exception_to_raise=Timeout):
model = args[0] if len(args) > 0 else kwargs["model"]
raise exception_to_raise(
f"A timeout error occurred. The function call took longer than {local_timeout_duration} second(s).",
model=model, # [TODO]: replace with logic for parsing out llm provider from model name
llm_provider="openai"
model=model, # [TODO]: replace with logic for parsing out llm provider from model name
llm_provider="openai",
)
thread.stop_loop()
return result
@ -78,8 +78,8 @@ def timeout(timeout_duration: float = 0.0, exception_to_raise=Timeout):
model = args[0] if len(args) > 0 else kwargs["model"]
raise exception_to_raise(
f"A timeout error occurred. The function call took longer than {local_timeout_duration} second(s).",
model=model, # [TODO]: replace with logic for parsing out llm provider from model name
llm_provider="openai"
model=model, # [TODO]: replace with logic for parsing out llm provider from model name
llm_provider="openai",
)
if iscoroutinefunction(func):