* fix(bedrock): match Python's Claude Platform Messages call in the Rust adapter
The Rust Claude Platform adapter never saw the workspace or the
unsupported-params override, because the bridge only projects the
kwargs LitellmParams names. They are now a typed group on
LitellmParams, so every Claude Platform call reaches Rust with them.
The adapter now follows Python's order. An API key goes out as
x-api-key unless the caller forwarded one, and the caller's
Authorization stays beside it. Without a key the Bedrock bearer token
authenticates the call, as on Invoke and Mantle, then SigV4. A
configured workspace always replaces the caller's header, and a header
alone is no workspace. litellm.api_base is honoured before the env
bases. The model keeps its claude_platform/ route until it is sent, so
the call is billed on the bedrock/claude_platform rows instead of
logging a zero cost.
The bridge no longer runs Invoke's tool shaping on Claude Platform
calls, which stripped a tool's cache_control ttl from the wire. A
missing workspace or region raises AuthenticationError with what is
missing, an invalid region the bare ValueError, and a region refusal
logs the resolved call as Python does. Credential failures map from
the fixed class list Mantle uses instead of replaying Python's signing.
Signing over a forwarded Authorization stays a difference from Python,
which re-adds the caller's header over its own signature. The Mantle
routes on Rust do the same.
* feat(messages): serve Claude Platform on Rust only and route Bedrock Messages by provider
bedrock/claude_platform/ /v1/messages calls now run on Rust only, as
Bedrock Invoke and Mantle do. With all three Bedrock Messages routes on
Rust, a bedrock or bedrock_mantle call that has a native Messages config
always runs on Rust, so the per-route targets go away. BEDROCK_INVOKE,
BEDROCK_MANTLE and the class-to-target map are removed, and bedrock and
bedrock_mantle join the provider rule anthropic and azure_ai already use.
Converse and non-Claude Bedrock models still get no Messages config and
keep going through Python's completion adaptation.
The Rust Claude Platform tests check the wire request against what
Python's config sent, captured once in a JSON fixture, plus billing on
the bedrock/claude_platform rows and the exception class and status of
each refusal.
* refactor(bedrock): drop the Python Claude Platform Messages handler code
Rust sends every Claude Platform /v1/messages call, so the Python config
loses the environment validation and request transform only Python's
Messages handler called, along with their unit tests. The config stays
for provider lookups, the error class and the URL the Rust host names in
errors. The chat route keeps its own transformation.
* test(bedrock): type the Claude Platform billing and failure assertions
* test(bedrock): check the Rust Bedrock Invoke Messages route against captured Python output
The Invoke tests no longer run Python's Messages handler beside Rust, which
litellm/rust/AGENTS.md rules out. What Python's Invoke config sent, billed,
streamed, logged and warned is captured once in a JSON fixture and each test
checks Rust against it. Exception tests check the class and status only, and
every served call asserts it was served by Rust. The Claude Platform tests
assert the same.
* refactor(bedrock): drop the Python Bedrock Invoke Messages handler code
Rust sends every Bedrock Invoke /v1/messages call, so the Python config loses
what only Python's Messages handler called: the environment validation, the
native-output retry pair, the event-stream iterator and decoder, and the SSE
wrapper. The request transform stays because count_tokens and the Mantle
configs read it. The Python unit tests that drove Invoke Messages through
Python's handler go with it. Converse and Invoke chat keep their tests.
* test(bedrock): drop the Python Invoke Messages leg from the cache breakpoint hook test
Bedrock Invoke Messages runs on Rust only, so the hook test keeps its
completion and acompletion legs, which reach Bedrock through Converse.
* fix(bedrock): close the Claude Platform differences the A/B fuzz found
Differential fuzzing against the Mantle tip found three places where Rust's
Claude Platform route still differed from Python's.
SigV4 now signs in us-west-2 when no region is named anywhere, as botocore
does, instead of refusing the call. A missing region for the default endpoint
raises AuthenticationError naming no model, as Python's config raises it. Rust
now logs Python's warnings when it drops params the endpoint rejects, when it
ignores a claude_platform_unsupported_params that is not a list, and when it
drops a disabled thinking on an always-thinking model. For that last warning
the request model is sent without its claude_platform/ route again, and the
logged model carries the route so billing stays on the claude_platform rows.
* fix(messages): require Rust only for a native Messages target
The provider rule that makes anthropic, azure_ai, bedrock and bedrock_mantle
Rust-only had no target filter. When computing a call's target raises,
dispatch serves the call on Python and _checked_target hands the refusal
check target None, which matched the rule, so a non-Claude Bedrock call that
only Python can serve was refused as Rust-only. The rule now matches only
Target.MESSAGES, which a call gets exactly when its provider has a native
Messages config, so the Claude Bedrock routes stay Rust-only and a call with
no computed target falls back to Python as dispatch intends.