add auto-bedrock support based on bedrock/provider.model-name

Merged
PI
10mo ago
+193-2

why

Fixes: https://github.com/browserbase/stagehand-go/issues/43

Adds automatic bedrock AI SDK client support when modelName ~= 'bedrock/...'

what changed

test plan


Summary by cubic

Adds automatic Amazon Bedrock support by routing models named bedrock/{provider}.{model} to the Bedrock client. This enables zero-API-key setup using your AWS credentials.

  • New Features

    • Route bedrock/... model names to @ai-sdk/amazon-bedrock.
    • Treat Bedrock as no-API-key provider (uses AWS IAM/default credentials).
    • Example usage: bedrock/anthropic.claude-3.
  • Dependencies

    • Added @ai-sdk/amazon-bedrock as an optional dependency.