mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 11:02:40 +03:00
Update base_provider.py
This commit is contained in:
parent
567b39c330
commit
d2f04e80be
@ -34,7 +34,7 @@ def get_running_loop(check_nested: bool) -> Union[AbstractEventLoop, None]:
|
||||
try:
|
||||
import uvloop
|
||||
if isinstance(loop, uvloop.Loop):
|
||||
return
|
||||
return loop
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
pass
|
||||
if check_nested and not hasattr(loop.__class__, "_nest_patched"):
|
||||
|
Loading…
Reference in New Issue
Block a user