mirror of
https://github.com/usestrix/strix.git
synced 2026-09-06 08:15:56 +00:00
fix(llm): suppress RuntimeWarnings for unawaited coroutines from asyncio
This commit is contained in:
parent
6373fcf6a5
commit
a46a273a37
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue