-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
amazon-bedrock provider: Haiku 4.5 inference profile ARN not supported; params.modelId override ignored #87318
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Summary
When using
amazon-bedrockas the provider in cron jobpayload.model, inference profile ARNs are not routed correctly to AWS Bedrock — the job falls back to direct Anthropic instead.Environment
bedrock-haderach(policy:AmazonBedrockFullAccess)Reproduction
Config (
agents.defaults.models):Cron payload:
{ "model": "amazon-bedrock/global.anthropic.claude-haiku-4-5", "fallbacks": ["amazon-bedrock/nova-pro", "anthropic/claude-haiku-4-5"] }Result: Cron runs with
provider: anthropic, notprovider: amazon-bedrock. Theparams.modelIdoverride is ignored.Also tested: setting
payload.modeltoamazon-bedrock/arn:aws:bedrock:us-east-1:615894661560:inference-profile/global.anthropic.claude-haiku-4-5-20251001-v1:0— passes the allowlist (withamazon-bedrock/*wildcard) but still routes to direct Anthropic.Root Cause (diagnosed)
AWS Bedrock Haiku 4.5 requires an inference profile ID, not a bare model ID. The bare ID
anthropic.claude-haiku-4-5-20251001-v1:0returns:The correct working inference profile IDs (confirmed via live AWS API tests):
global.anthropic.claude-haiku-4-5-20251001-v1:0— works when called via full ARN:arn:aws:bedrock:us-east-1:<account-id>:inference-profile/global.anthropic.claude-haiku-4-5-20251001-v1:0global.anthropic.claude-sonnet-4-6— works as-is (no ARN needed)OpenClaw's Bedrock plugin passes
model.id(the part afteramazon-bedrock/) directly as the AWSmodelId. This works for Sonnet 4.6 but not Haiku 4.5.Expected Behaviour
One of:
params.modelIdin the model config entry should override the AWSmodelIdused in the API callamazon-bedrock/provider should support full ARN strings as the model portion (e.g.amazon-bedrock/arn:aws:bedrock:...)global.anthropic.claude-haiku-4-5as an alias and resolve it to the correct inference profile ARNWorkaround
Currently falling back to direct
anthropic/claude-haiku-4-5via fallback chain. Functional but not on Bedrock.Notes
global.anthropic.claude-sonnet-4-6works correctly viaamazon-bedrock/global.anthropic.claude-sonnet-4-6— no issue thereus.prefix:amazon-bedrock/nova-pro→us.amazon.nova-pro-v1:0amazon-bedrock/*wildcard entry inagents.defaults.modelsis confirmed working (schema-documented feature)