Skip to content

Add Bedrock routing to ai-gateway-provider#588

Draft
financialvice wants to merge 1 commit into
cloudflare:mainfrom
financialvice:codex/add-bedrock-ai-gateway-provider-route
Draft

Add Bedrock routing to ai-gateway-provider#588
financialvice wants to merge 1 commit into
cloudflare:mainfrom
financialvice:codex/add-bedrock-ai-gateway-provider-route

Conversation

@financialvice

Copy link
Copy Markdown

Summary

  • add Amazon Bedrock Runtime URL detection to ai-gateway-provider
  • transform Bedrock URLs into AI Gateway aws-bedrock endpoint paths
  • add endpoint parsing coverage and list Amazon Bedrock in the package README
  • add a patch changeset for ai-gateway-provider

Fixes #587.

Root cause

ai-gateway-provider/providers/amazon-bedrock is exported, but createAiGateway() infers the target AI Gateway provider by matching the wrapped SDK request URL. The provider table did not include bedrock-runtime.{region}.amazonaws.com, so Bedrock models failed with provider "amazon-bedrock" is currently not supported before reaching AI Gateway.

Validation

  • pnpm --filter ai-gateway-provider test -- --run
  • pnpm --filter ai-gateway-provider type-check

@changeset-bot

changeset-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1399ba1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ai-gateway-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ai-gateway-provider amazon-bedrock export is missing Bedrock URL routing

1 participant