Skip to content

[v6.0] fix: Amazon Bedrock Converse requests fail for ARN model IDs containing slashes - #17550

Merged
lgrammel merged 2 commits into
release-v6.0from
backport-v6.0/17523-1
Jul 21, 2026
Merged

[v6.0] fix: Amazon Bedrock Converse requests fail for ARN model IDs containing slashes#17550
lgrammel merged 2 commits into
release-v6.0from
backport-v6.0/17523-1

Conversation

@lgrammel

Copy link
Copy Markdown
Collaborator

Background

Amazon Bedrock Converse generation failed and streaming returned empty text when ARN model IDs contained /.

Root Cause

The chat model URL builder decoded %2F in ARN model IDs, splitting the model ID across URL path segments and causing Bedrock to return an UnknownOperationException; route-sensitive regression tests confirmed the malformed path.

Summary

Restored full percent-encoding of model IDs when constructing Amazon Bedrock Converse and ConverseStream URLs.

Testing

Updated the existing chat language model tests with route-sensitive generate and stream coverage using inline snapshots, and added a patch changeset.

End-to-end Validation

  • pnpm -C packages/amazon-bedrock build && pnpm -C examples/ai-functions exec tsx src/reproduction/issue-17523-bedrock-arn-model-id.ts — live Bedrock generation and streaming succeeded with the inference-profile ARN, returning assistant text and finish reason length.

Related Issues

Fixes #17523

Closes #17524

Backport of #17525

Co-authored-by: PaulBanusIAD 120463976+PaulBanusIAD@users.noreply.github.com

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
ai 6.0.232 github npm
@ai-sdk/amazon-bedrock 4.0.138 github npm
@ai-sdk/angular 2.0.233 github npm
@ai-sdk/anthropic 3.0.99 github npm
@ai-sdk/anthropic-aws 1.0.21 github npm
@ai-sdk/google 3.0.97 github npm
@ai-sdk/google-vertex 4.0.166 github npm
@ai-sdk/langchain 2.0.240 github npm
@ai-sdk/llamaindex 2.0.232 github npm
@ai-sdk/react 3.0.234 github npm
@ai-sdk/rsc 2.0.232 github npm
@ai-sdk/svelte 4.0.232 github npm
@ai-sdk/vue 3.0.232 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant