litellm/tests/e2e/claude_code
maciej-berri 2c46eaf7f6
refactor(messages): serve azure_ai messages on rust only and delete its python path
Provider azure_ai on /v1/messages is now RUST_REQUIRED next to anthropic, so a
Claude deployment whose AzureAnthropicMessagesConfig serves the call runs on
Rust without LITELLM_RUST or litellm.rust(True) and never falls back to Python.
The PYTHON_ONLY targets rule still sits above it, so a non-Claude azure_ai
deployment that opts into /v1/messages (MESSAGES_PASSTHROUGH) and an azure_ai
call bridged to Chat Completions or Responses stay on Python. A raising
detector on a Claude azure_ai call gets the same UnsupportedParamsError as
anthropic. MESSAGES_PYTHON_FEATURES is empty, so no feature refuses today.

Deleted Python code that only served azure_ai Messages:
- AzureAnthropicMessagesConfig._remove_scope_from_cache_control, a copy of
  the AnthropicMessagesConfig method it overrode. Its only caller is the
  azure transform_anthropic_messages_request (grep "_remove_scope_from_cache_control"
  litellm/: azure, databricks and vertex call self., the base defines it)

Kept, because the parity harness still runs every azure_ai case through the
Python handler (dispatch._PYTHON_AMESSAGES) as its baseline, and removing them
would send that baseline to api.anthropic.com with anthropic auth:
validate_anthropic_messages_environment, get_complete_url,
transform_anthropic_messages_request and should_strip_billing_metadata on
AzureAnthropicMessagesConfig (grep: only async_anthropic_messages_handler in
llm_http_handler.py calls them, reached from the Python fallback and the
harness). The Foundry beta-row branch was already removed with anthropic, and
resolve_beta_provider's Foundry row now serves only anthropic chat. Count
tokens has its own config and the Rust host reaches no deleted method.

The parity harness drops the rust_providers forcing, so azure_ai cases run
through the shipped rules and assert RUST_REQUIRED like anthropic. The azure
count tokens beta test sends its inference call through a caller client, as
Rust now serves it.
2026-11-13 23:13:55 +00:00
..
basic_messaging_non_streaming test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
basic_messaging_streaming test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
count_tokens test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
cron_vm chore: move deployment sources under litellm/deploy (#50981) 2026-11-12 04:19:56 +00:00
long_context_1m test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
passthrough test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
pdf_input test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
prompt_caching_1h test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
prompt_caching_5m refactor(messages): serve azure_ai messages on rust only and delete its python path 2026-11-13 23:13:55 +00:00
structured_outputs test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
thinking test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
thinking_with_tool_use test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
tool_search test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
tool_use test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
tool_use_streaming test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
vision test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
web_search test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
__init__.py test(claude_code): move the Claude Code compatibility matrix under tests/e2e (#32548) 2026-07-14 19:19:03 -07:00
_basic_messaging.py test(e2e): tag claude_code cells with Subject metadata and record CLI driver steps (#44961) 2026-10-07 10:31:54 -07:00
_compat_models.py fix(e2e/claude_code): unblock stage collection, align proxy env names, register compat models (#33433) 2026-07-16 11:05:31 -07:00
_env.py feat(e2e): read management routes back from the control plane replicas (#43373) 2026-09-26 18:05:55 -07:00
_gpt_cells.py test(e2e): skip flaky OpenAI GPT cells; raise multi-window max_tokens (#33799) 2026-07-17 19:07:18 -07:00
_passthrough.py test(e2e): move the harness self-tests out of tests/e2e (#45172) 2026-10-07 22:20:02 +00:00
cli_driver.py test(e2e): share the coding-CLI harness between suites (#49370) 2026-11-02 13:50:56 -08:00
conftest.py test(e2e): retire the quiet_stack lock and batch the claude_code model registration (#49984) 2026-11-04 09:55:53 -08:00
http_probe.py test(e2e): share the coding-CLI harness between suites (#49370) 2026-11-02 13:50:56 -08:00
manifest.yaml Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_claude_code_e2e_gpt_big3 2026-07-16 15:04:08 -07:00
matrix_builder.py chore(e2e): port the compat-matrix cron publisher to tests/e2e/claude_code 2026-08-10 21:46:56 +00:00
pr_gate_version_resolver.py test(e2e): share the coding-CLI harness between suites (#49370) 2026-11-02 13:50:56 -08:00
run_compat.sh test(e2e): share the coding-CLI harness between suites (#49370) 2026-11-02 13:50:56 -08:00
sample_compatibility-matrix.json test(claude_code): move the Claude Code compatibility matrix under tests/e2e (#32548) 2026-07-14 19:19:03 -07:00
test_config.yaml test(e2e/claude_code): reuse AZURE_API_BASE/KEY for the azure_openai GPT column 2026-07-16 16:45:18 -07:00