test(test_router.py): run as asyncio.run

This commit is contained in:
Krrish Dholakia 2023-12-09 12:28:28 -08:00
parent 043d0c0c89
commit 3f045501c2

View file

@ -226,12 +226,9 @@ def test_call_one_endpoint():
)
print("\n response", response)
tasks = []
tasks.append(call_azure_completion())
tasks.append(call_bedrock_claude())
tasks.append(call_azure_embedding())
asyncio.gather(**tasks)
asyncio.run(call_azure_completion())
asyncio.run(call_bedrock_claude())
asyncio.run(call_azure_embedding()
os.environ["AZURE_API_BASE"] = old_api_base
os.environ["AZURE_API_KEY"] = old_api_key