The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fixing tests
yuneng-jianga2e977b8e663
diff --git a/tests/test_team.py b/tests/test_team.pyindex 06a2e7a3648..4ef9b8d9195 100644--- a/tests/test_team.py+++ b/tests/test_team.py@@ -683,26 +683,28 @@ async def test_team_alias():@pytest.mark.asyncioasync def test_users_in_team_budget():"""- - Create Team- Create User+ - Create Team with User- Add User to team with budget = 0.0000001- Make Call 1 -> pass- Make Call 2 -> fail"""get_user = f"krrish_{time.time()}@berri.ai"async with aiohttp.ClientSession() as session:- team = await new_team(session, 0, user_id=get_user)- print("New team=", team)+ # Create user first to avoid user_id collision when creating teamkey_gen = await new_user(session,0,user_id=get_user,budget=10,budget_duration="5s",- team_id=team["team_id"],models=["fake-openai-endpoint"],)key = key_gen["key"]++ # Create team with the user (user already exists, so it will just add them)+ team = await new_team(session, 0, user_id=get_user)+ print("New team=", team)# update user to have budget = 0.0000001await update_member(