mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-14 04:09:09 +00:00
Three defects the review bot found, all confirmed against the code before fixing. anthropic_workspace_id was carved out of the request-body ban as inert. It is not inert: it is the scope the federation token is minted for, and router.py merges request kwargs over deployment params, so a caller who set it chose the scope instead of the administrator. Proven against Anthropic before fixing, whose token endpoint answered "workspace_id is not a well-formed wrkspc_ tagged ID" on a value that came from the request body. The carve-out is gone, so it is banned like every other minting parameter. That does not cost the Bedrock Claude Platform route anything. It reads a workspace from workspace_id or aws_workspace_id as well, neither of which is a federation parameter or in all_litellm_params, so both still reach it from a request body, and an administrator-configured anthropic_workspace_id still resolves from the deployment. The refusal names those two spellings so that caller is not left guessing. Batches had the same caller-credential merge that files did, on its create path. The retrieve path in the handler passes no caller headers, which is why the earlier pass over this missed it. merge_anthropic_beta_headers now accepts a list as well as a comma-separated string. The Skills surface handled a list-valued anthropic-beta before it shared this helper, and calling .split() on one raises. |
||
|---|---|---|
| .. | ||
| test_admin_viewer_handler_access.py | ||
| test_auth_checks.py | ||
| test_auth_exception_handler.py | ||
| test_auth_hot_path_network_requests.py | ||
| test_auth_utils.py | ||
| test_banned_params_extra_body.py | ||
| test_cli_auth.py | ||
| test_custom_auth_end_user_budget.py | ||
| test_handle_jwt.py | ||
| test_info_routes.py | ||
| test_litellm_license.py | ||
| test_login_utils.py | ||
| test_mcp_ip_filtering.py | ||
| test_model_checks.py | ||
| test_model_checks_fallbacks.py | ||
| test_multi_budget_windows.py | ||
| test_network.py | ||
| test_oauth2_proxy_hook.py | ||
| test_object_permission_loading.py | ||
| test_onboarding.py | ||
| test_organization_budget_enforcement.py | ||
| test_password_hashing.py | ||
| test_resolvers_exceptions.py | ||
| test_resolvers_models.py | ||
| test_resolvers_seam.py | ||
| test_resolvers_store.py | ||
| test_route_checks.py | ||
| test_router_override_fallback_auth.py | ||
| test_team_member_budget.py | ||
| test_unmapped_model_budget_enforcement.py | ||
| test_user_api_key_auth.py | ||