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(vcr): mark Bedrock prompt-caching cross-call tests VCR-incompatible
Cursor Agent3390fc19722b
diff --git a/tests/pass_through_unit_tests/conftest.py b/tests/pass_through_unit_tests/conftest.pyindex ff47853d494..42a95343eb7 100644--- a/tests/pass_through_unit_tests/conftest.py+++ b/tests/pass_through_unit_tests/conftest.py@@ -16,6 +16,18 @@ from tests._vcr_conftest_common import ( # noqa: E402vcr_config_dict,)+# Tests that observe live cross-call provider state — typically a+# warm-up call followed by an assertion that the *second* call sees the+# upstream's prompt-cache (Anthropic / Bedrock prompt-caching). VCR's+# deterministic replay can't model this: both calls match the same+# cassette episode, so the second call returns the first call's+# pre-warmup response. Opt these out so they run live (no caching).+_VCR_INCOMPATIBLE_NODEID_SUFFIXES = (+ "::test_prompt_caching_returns_cache_read_tokens_on_second_call",+ "::test_prompt_caching_streaming_second_call_returns_cache_read",+)++_verbose_state = VerboseReporterState()@@ -51,7 +63,9 @@ def pytest_runtest_logreport(report):def pytest_collection_modifyitems(config, items):- apply_vcr_auto_marker_to_items(items)+ apply_vcr_auto_marker_to_items(+ items, skip_nodeid_suffixes=_VCR_INCOMPATIBLE_NODEID_SUFFIXES+ )def pytest_terminal_summary(terminalreporter, exitstatus, config):