ruff
This commit is contained in:
parent
926168b6bd
commit
4a99138daf
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ async def cleanup_litellm_clients():
|
||||||
# Cleanup LiteLLM async clients to prevent RuntimeWarning about unawaited coroutine
|
# Cleanup LiteLLM async clients to prevent RuntimeWarning about unawaited coroutine
|
||||||
try:
|
try:
|
||||||
import litellm
|
import litellm
|
||||||
|
|
||||||
if hasattr(litellm, "close_litellm_async_clients"):
|
if hasattr(litellm, "close_litellm_async_clients"):
|
||||||
await litellm.close_litellm_async_clients()
|
await litellm.close_litellm_async_clients()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue