mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
The pass-through method contract asserted that every route accepts GET, POST, PUT, DELETE and PATCH. That holds for routes fronting a REST API, where narrowing the set turns a request the upstream would have served into a 405, but it does not hold for Amazon Comprehend Medical: it speaks AWS JSON 1.1, which is POST-only, and its handler signs a POST upstream and requires a JSON object body. Registering the other four verbs there would only produce routes that always fail body parsing, so the route is POST-only on purpose and the blanket assertion is the part that is wrong. Carry a narrow exemption list instead of dropping the check. Exempted routes are still pinned to an exact method set, so widening or narrowing one fails, and a companion test asserts every exempted path is still registered so the list cannot outlive the routes it covers. |
||
|---|---|---|
| .. | ||
| messages_api_structured_output | ||
| base_anthropic_messages_prompt_caching_test.py | ||
| base_anthropic_messages_tool_search_test.py | ||
| base_anthropic_unified_messages_test.py | ||
| conftest.py | ||
| test_anthropic_messages_passthrough.py | ||
| test_anthropic_messages_prompt_caching.py | ||
| test_anthropic_messages_tool_search.py | ||
| test_assemblyai_unit_tests_passthrough.py | ||
| test_bedrock_anthropic_messages_test.py | ||
| test_bedrock_tool_use_beta_header.py | ||
| test_claude_code_marketplace.py | ||
| test_context_management_polyfill.py | ||
| test_custom_logger_passthrough.py | ||
| test_pass_through_unit_tests.py | ||
| test_passthrough_managed_ids.py | ||
| test_passthrough_registry_updates.py | ||
| test_unit_test_anthropic_pass_through.py | ||
| test_unit_test_passthrough_router.py | ||
| test_unit_test_streaming.py | ||
| test_vertex_ai_anthropic_streaming_cost_injection.py | ||
| test_vertex_ai_live_passthrough.py | ||
| test_websearch_interception_e2e.py | ||