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
test(integration): expect the Exa search envelope's provider_metadata after #47423 (#47572)
Mateo Wang047cb4a8e2b2
diff --git a/tests/integration/authorization/test_search_tool_allowlist.py b/tests/integration/authorization/test_search_tool_allowlist.pyindex 84f2b7ebaf2..3782f31991b 100644--- a/tests/integration/authorization/test_search_tool_allowlist.py+++ b/tests/integration/authorization/test_search_tool_allowlist.py@@ -92,7 +92,10 @@ def test_search_tool_allowlist_refuses_other_tools_before_any_upstream_call(assert (refused.status_code, refused.json()) == (403, refusal), refused.textassert wire.drain() == ()served: Final = gateway.request("POST", f"/v1/search/{allowed}", _SEARCH_BODY, key=key)- assert (served.status_code, served.json()) == (200, {"object": "search", "results": []}), served.text+ assert (served.status_code, served.json()) == (+ 200,+ {"object": "search", "results": [], "provider_metadata": {}},+ ), served.textassert [(request.method, request.target) for request in wire.drain()] == [("POST", "/allowed/search")]diff --git a/tests/integration/management/test_search_tool_crud.py b/tests/integration/management/test_search_tool_crud.pyindex f46da964e14..e97f2727595 100644--- a/tests/integration/management/test_search_tool_crud.py+++ b/tests/integration/management/test_search_tool_crud.py@@ -113,6 +113,7 @@ def test_search_tool_create_update_delete_is_read_back_and_applied_without_resta"results": [{"title": target, "url": "https://crud.invalid", "snippet": key, "date": None, "last_updated": None}],+ "provider_metadata": {},}, response.textread_back(original)