From 65e90c2eff11686b8ba6e8186d239e53e1ffc74d Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 11 Jul 2026 17:27:05 -0700 Subject: [PATCH] fix(e2e): derive the anthropic driver route from the configured model --- tests/e2e/llm_translation/test_passthrough_e2e.py | 2 +- tests/e2e/quota_management/spend_tracking/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/llm_translation/test_passthrough_e2e.py b/tests/e2e/llm_translation/test_passthrough_e2e.py index b502439d1c5..1d44bdedd91 100644 --- a/tests/e2e/llm_translation/test_passthrough_e2e.py +++ b/tests/e2e/llm_translation/test_passthrough_e2e.py @@ -4,7 +4,7 @@ Each test sends a NATIVE provider request through the proxy's passthrough route and verifies the proxy still logged a costed SpendLogs row (call_type="pass_through_endpoint"), correlated by the x-litellm-call-id header. -Covered: gemini ("gemini-2.5-flash") + anthropic ("claude-haiku-4-5"), streaming + +Covered: gemini ("gemini-2.5-flash") + anthropic (CHEAP_ANTHROPIC_MODEL), streaming + non-streaming, plus native tool calls. See LLM_TRANSLATION_COVERAGE_MATRIX.md. A passthrough call returning non-2xx fails hard (never a skip); once it returns diff --git a/tests/e2e/quota_management/spend_tracking/conftest.py b/tests/e2e/quota_management/spend_tracking/conftest.py index ff729328aae..c2a0b3f5ddf 100644 --- a/tests/e2e/quota_management/spend_tracking/conftest.py +++ b/tests/e2e/quota_management/spend_tracking/conftest.py @@ -33,7 +33,7 @@ def _driver_params(provider_model: str, env_var: str) -> LiteLLMParamsBody: DRIVER_MODELS: tuple[tuple[str, str, str], ...] = ( ("gemini-2.5-flash", "gemini/gemini-2.5-flash", "GEMINI_API_KEY"), - (CHEAP_ANTHROPIC_MODEL, "anthropic/claude-haiku-4-5", "ANTHROPIC_API_KEY"), + (CHEAP_ANTHROPIC_MODEL, f"anthropic/{CHEAP_ANTHROPIC_MODEL}", "ANTHROPIC_API_KEY"), ("openai-text-embedding-3-small", "openai/text-embedding-3-small", "OPENAI_API_KEY"), )