fix(cli): filter out LiteLLM coroutine not awaited warning at shutdown (#9842)

This commit is contained in:
llamantino 2025-07-22 15:53:58 +02:00 committed by GitHub
parent 07041e057d
commit dc2f5cd1b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,13 @@ def suppress_cli_warnings():
category=UserWarning,
)
# Suppress LiteLLM close_litellm_async_clients was never awaited warning
warnings.filterwarnings(
'ignore',
message="coroutine 'close_litellm_async_clients' was never awaited",
category=RuntimeWarning,
)
# Apply warning suppressions when module is imported
suppress_cli_warnings()