Skip to content

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]

test: refresh three suites that drifted from the code they cover

Yuneng Jiang6de68f18f80e
diff --git a/tests/llm_responses_api_testing/test_google_ai_studio_responses_api.py b/tests/llm_responses_api_testing/test_google_ai_studio_responses_api.py
index 70c818f0a0a..3ed92bd760d 100644
--- a/tests/llm_responses_api_testing/test_google_ai_studio_responses_api.py
+++ b/tests/llm_responses_api_testing/test_google_ai_studio_responses_api.py
@@ -81,9 +81,8 @@ async def test_mock_basic_google_ai_studio_responses_api_with_tools():
call_kwargs["messages"][0]["content"]
== "what is the latest version of supabase python package and when was it released?"
)
- assert (
- call_kwargs["tools"] == []
- ) # web search tools are converted to web_search_options, not kept as tools
+ assert "tools" not in call_kwargs
+ assert "tool_choice" not in call_kwargs
@pytest.mark.asyncio
diff --git a/tests/store_model_in_db_tests/test_adding_passthrough_model.py b/tests/store_model_in_db_tests/test_adding_passthrough_model.py
index c8212b849a1..001b0c941a5 100644
--- a/tests/store_model_in_db_tests/test_adding_passthrough_model.py
+++ b/tests/store_model_in_db_tests/test_adding_passthrough_model.py
@@ -6,8 +6,7 @@ make request
Cases to cover
1. user points api base to <proxy-base>/assemblyai
2. user points api base to <proxy-base>/asssemblyai/us
-3. user points api base to <proxy-base>/assemblyai/eu
-4. Bad API Key / credential - 401
+3. Bad API Key / credential - 401
"""
import time
@@ -19,7 +18,6 @@ import json
TEST_MASTER_KEY = "sk-1234"
PROXY_BASE_URL = "http://0.0.0.0:4000"
US_BASE_URL = f"{PROXY_BASE_URL}/assemblyai"
-EU_BASE_URL = f"{PROXY_BASE_URL}/eu.assemblyai"
ASSEMBLYAI_API_KEY_ENV_VAR = "ASSEMBLYAI_API_KEY"
@@ -82,20 +80,6 @@ def test_e2e_assemblyai_passthrough():
pass
-def test_e2e_assemblyai_passthrough_eu():
- """
- Test adding a pass through assemblyai model + api key + api base to the db
- wait 20 seconds
- make request
- """
- add_assembly_ai_model_to_db(api_base="https://api.eu.assemblyai.com")
- virtual_key = create_virtual_key()
- # make request
- make_assemblyai_basic_transcribe_request(
- virtual_key=virtual_key, assemblyai_base_url=EU_BASE_URL
- )
-
- pass
def test_assemblyai_routes_with_bad_api_key():
diff --git a/tests/test_openai_endpoints.py b/tests/test_openai_endpoints.py
index 8d01651c586..0d44064997e 100644
--- a/tests/test_openai_endpoints.py
+++ b/tests/test_openai_endpoints.py
@@ -445,7 +445,7 @@ async def test_chat_completion_anthropic_structured_output():
client = AsyncOpenAI(api_key="sk-1234", base_url="http://0.0.0.0:4000")
res = await client.beta.chat.completions.parse(
- model="bedrock/us.anthropic.claude-3-sonnet-20240229-v1:0",
+ model="bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",
messages=messages,
response_format=EventsList,
timeout=60,