fix(e2e): derive the anthropic driver route from the configured model

This commit is contained in:
mateo-berri 2026-07-11 17:27:05 -07:00
parent e44aa07a8a
commit 65e90c2eff
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"),
)