mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(router.py): enable async completions with model fallbacks
This commit is contained in:
parent
9b53ea4b0f
commit
afac42e93a
2 changed files with 8 additions and 12 deletions
|
@ -59,6 +59,7 @@ def test_sync_fallbacks():
|
|||
print(e)
|
||||
|
||||
def test_async_fallbacks():
|
||||
litellm.set_verbose = False
|
||||
async def test_get_response():
|
||||
user_message = "Hello, how are you?"
|
||||
messages = [{"content": user_message, "role": "user"}]
|
||||
|
@ -73,4 +74,4 @@ def test_async_fallbacks():
|
|||
|
||||
asyncio.run(test_get_response())
|
||||
|
||||
test_async_fallbacks()
|
||||
# test_async_fallbacks()
|
Loading…
Add table
Add a link
Reference in a new issue