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
fix flaky test test_openai_responses_api_web_search_cost_tracking
Ishaan Jaff36d17c23aca6
diff --git a/tests/logging_callback_tests/test_built_in_tools_cost_tracking.py b/tests/logging_callback_tests/test_built_in_tools_cost_tracking.pyindex d4013f2e8db..97cc88414bd 100644--- a/tests/logging_callback_tests/test_built_in_tools_cost_tracking.py+++ b/tests/logging_callback_tests/test_built_in_tools_cost_tracking.py@@ -115,13 +115,13 @@ async def test_openai_web_search_logging_cost_tracking("tools_config,expected_context_size,stream",[(- [{"type": "web_search_preview", "search_context_size": "high"}],- "search_context_size_high",+ [{"type": "web_search_preview", "search_context_size": "low"}],+ "search_context_size_low",True,),(- [{"type": "web_search_preview", "search_context_size": "high"}],- "search_context_size_high",+ [{"type": "web_search_preview", "search_context_size": "low"}],+ "search_context_size_low",False,),([{"type": "web_search_preview"}], "search_context_size_medium", True),