mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test(conftest.py): create an event loop if one doesn't exist
This commit is contained in:
parent
c43a141889
commit
3789b37e97
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ def setup_and_teardown():
|
|||
import litellm
|
||||
|
||||
importlib.reload(litellm)
|
||||
import asyncio
|
||||
|
||||
loop = asyncio.get_event_loop_policy().new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
print(litellm)
|
||||
# from litellm import Router, completion, aembedding, acompletion, embedding
|
||||
yield
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue