fix(llm): suppress RuntimeWarnings for unawaited coroutines from asyncio

This commit is contained in:
0xallam
2026-01-07 20:09:46 -08:00
parent 9bb8475e2f
commit ea31e0cc9d

View File

@@ -1,4 +1,5 @@
import logging
import warnings
import litellm
@@ -15,3 +16,4 @@ __all__ = [
litellm._logging._disable_debugging()
logging.getLogger("asyncio").setLevel(logging.CRITICAL)
logging.getLogger("asyncio").propagate = False
warnings.filterwarnings("ignore", category=RuntimeWarning, module="asyncio")