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(tests): use github-hosted PDF fixture for Anthropic Files API test
mateo-berri225d01cb4f6f
diff --git a/tests/llm_translation/base_llm_unit_tests.py b/tests/llm_translation/base_llm_unit_tests.pyindex f3b1895323c..61ae5945320 100644--- a/tests/llm_translation/base_llm_unit_tests.py+++ b/tests/llm_translation/base_llm_unit_tests.py@@ -401,7 +401,10 @@ class BaseLLMChatTest(ABC):{"type": "file","file": {- "file_id": "https://upload.wikimedia.org/wikipedia/commons/2/20/Re_example.pdf"+ # GitHub-hosted fixture (small, deterministic, reliably+ # fetchable from Anthropic's egress) instead of a Wikipedia+ # URL that intermittently returns 400 "Unable to download".+ "file_id": "https://raw.githubusercontent.com/BerriAI/litellm/main/tests/llm_translation/fixtures/dummy.pdf"},},]diff --git a/tests/llm_translation/conftest.py b/tests/llm_translation/conftest.pyindex 540518124dc..afd48bb6742 100644--- a/tests/llm_translation/conftest.py+++ b/tests/llm_translation/conftest.py@@ -63,8 +63,6 @@ _VCR_INCOMPATIBLE_NODEID_SUFFIXES = frozenset(# Provider prompt-cache propagation isn't deterministic between two# back-to-back calls; the test is flaky against the live provider."::test_prompt_caching",- # Wikipedia URL fetch through Anthropic Files API is flaky upstream.- "::test_async_pdf_handling_with_file_id",# Bedrock Nova returns tool_call vs JSON nondeterministically; the# base assertion expects JSON. Other providers' versions of this# test are healthy, so we narrow with a class-name guard below.