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: fix test

Krrish Dholakiac6d36e891230
diff --git a/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py b/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py
index 82faf738a5d..d35115e5241 100644
--- a/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py
+++ b/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py
@@ -156,10 +156,7 @@ def test_web_search_tool_transformation():
assert anthropic_web_search_tool is not None
assert anthropic_web_search_tool["user_location"] is not None
assert anthropic_web_search_tool["user_location"]["type"] == "approximate"
- assert (
- anthropic_web_search_tool["user_location"]["approximate"]["city"]
- == "San Francisco"
- )
+ assert anthropic_web_search_tool["user_location"]["city"] == "San Francisco"
@pytest.mark.parametrize(