mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_router.py): run as asyncio.run
This commit is contained in:
parent
043d0c0c89
commit
3f045501c2
1 changed files with 3 additions and 6 deletions
|
@ -226,12 +226,9 @@ def test_call_one_endpoint():
|
||||||
)
|
)
|
||||||
|
|
||||||
print("\n response", response)
|
print("\n response", response)
|
||||||
tasks = []
|
asyncio.run(call_azure_completion())
|
||||||
tasks.append(call_azure_completion())
|
asyncio.run(call_bedrock_claude())
|
||||||
tasks.append(call_bedrock_claude())
|
asyncio.run(call_azure_embedding()
|
||||||
tasks.append(call_azure_embedding())
|
|
||||||
|
|
||||||
asyncio.gather(**tasks)
|
|
||||||
|
|
||||||
os.environ["AZURE_API_BASE"] = old_api_base
|
os.environ["AZURE_API_BASE"] = old_api_base
|
||||||
os.environ["AZURE_API_KEY"] = old_api_key
|
os.environ["AZURE_API_KEY"] = old_api_key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue