litellm/tests/test_litellm/llms/anthropic
Sameer Kankute e9d797bd8d fix(proxy): do not forward Authorization header to LLM provider when used for LiteLLM proxy auth
When forward_llm_provider_auth_headers=true, Authorization: Bearer <litellm-key> was
being forwarded to Anthropic if it looked like an OAuth key, causing auth failures.

Now checked against authenticated_with_header: if Authorization was used to authenticate
with the proxy, it is always stripped before forwarding to the LLM provider.

Made-with: Cursor
2026-03-06 18:20:48 +05:30
..
chat feat(anthropic): support top-level cache_control for automatic prompt caching (#22442) 2026-03-05 08:34:56 -08:00
experimental_pass_through Fix Anthropic streaming sync __next__ and Azure GPT-5.1 logprobs 2026-03-03 18:16:11 -03:00
test_anthropic_common_utils.py fix(proxy): do not forward Authorization header to LLM provider when used for LiteLLM proxy auth 2026-03-06 18:20:48 +05:30
test_anthropic_count_tokens_transformation.py fix(count_tokens): include system and tools in token counting API requests 2026-02-27 15:39:35 -03:00
test_anthropic_files_and_batches.py Add tests for file and batch feat for anthropic 2025-12-10 17:14:47 +05:30
test_anthropic_structured_output.py fix(test): update test_other_constraints_preserved for new schema filtering behavior 2026-02-15 19:10:44 -03:00
test_azure_ai_cache_pricing.py [Fix] Anthropic models on Azure AI cache pricing (#19532) (#19614) 2026-01-22 20:00:40 -08:00
test_count_tokens_oauth.py fix(anthropic): handle OAuth tokens in count_tokens endpoint (#22366) 2026-03-02 19:21:27 +05:30
test_message_sanitization.py fix(test): correct assertion order in test_case_a_orphaned_tool_call_multiple 2026-02-18 08:25:33 -03:00