mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
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. |
||
|---|---|---|
| .. | ||
| basic_messaging_non_streaming | ||
| basic_messaging_streaming | ||
| count_tokens | ||
| cron_vm | ||
| long_context_1m | ||
| passthrough | ||
| pdf_input | ||
| prompt_caching_1h | ||
| prompt_caching_5m | ||
| structured_outputs | ||
| thinking | ||
| thinking_with_tool_use | ||
| tool_search | ||
| tool_use | ||
| tool_use_streaming | ||
| vision | ||
| web_search | ||
| __init__.py | ||
| _basic_messaging.py | ||
| _compat_models.py | ||
| _env.py | ||
| _gpt_cells.py | ||
| _passthrough.py | ||
| cli_driver.py | ||
| conftest.py | ||
| http_probe.py | ||
| manifest.yaml | ||
| matrix_builder.py | ||
| pr_gate_version_resolver.py | ||
| run_compat.sh | ||
| sample_compatibility-matrix.json | ||
| test_config.yaml | ||