Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions litellm/llms/custom_httpx/async_client_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ async def close_litellm_async_clients():
except Exception:
# Silently ignore errors during cleanup
pass

# Close Vertex AI token refresh session
try:
from litellm.llms.vertex_ai.vertex_llm_base import VertexBase

await VertexBase.close_token_refresh_session()
except Exception:
# Silently ignore errors during cleanup
pass


def register_async_client_cleanup():
Expand Down
Loading
Loading