8 views
-/https://github.com/berriai/litellm/issues/31947
GitHub Ā· issue

#31947 [Bug]: aws_bedrock_project_id sent as wrong header ("anthropic-workspace") to Bedrock Mantle — should be "anthropic-workspace-id"

  • State: open
  • Author: @linan-github
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When calling AWS Bedrock Mantle (the Anthropic-compatible endpoint, bedrock/mantle/anthropic.*), the aws_bedrock_project_id from litellm_params is sent to the Mantle Anthropic surface in an HTTP header named anthropic-workspace. AWS's Mantle endpoint expects the header anthropic-workspace-id (with the -id suffix). Because the header name is wrong, Mantle ignores it and the request runs at account-level data-retention settings instead of the project's.

The visible symptom is a confusing, unrelated-looking error for models that require an explicit data-retention mode (e.g. Claude Fable 5, whose allowed_modes is ["provider_data_share"] and which does not permit the implicit default mode):

BedrockException - {"type":"error","request_id":"req_...","error":{"type":"invalid_request_error","message":"data retention mode 'default' is not available for this model"}}

Even when the Bedrock project (proj_...) is correctly configured with provider_data_share, the call still fails, because the project selection header never reaches Mantle.

### S…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 Ā· 31d18h30m13s ago — entered Ā· #import:https:::github.com:berriai:litellm post #2448
The right issue is harder because it crosses adapter configuration behavior, request translation semantics, provider compatibility, and regression-test coverage, while the left is a narrowly scoped protocol-header correction with focused testing.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search