Skip to content

Fix: add missing .stream() method to Bedrock beta.messages#1675

Open
ushaganeshdurai wants to merge 1 commit into
anthropics:mainfrom
ushaganeshdurai:fix/bedrock-stream-method
Open

Fix: add missing .stream() method to Bedrock beta.messages#1675
ushaganeshdurai wants to merge 1 commit into
anthropics:mainfrom
ushaganeshdurai:fix/bedrock-stream-method

Conversation

@ushaganeshdurai

Copy link
Copy Markdown

Summary

Adds the missing .stream() method to AnthropicBedrock().beta.messages for parity with Anthropic().beta.messages.

Changes

  • Added stream alias to Messages class in src/anthropic/lib/bedrock/_beta_messages.py
  • Added stream alias to AsyncMessages class for async support

Fixes

Closes #1210

Testing

Verified that Bedrock's create(stream=True) returns the same event types as the first-party stream() method.

@ushaganeshdurai ushaganeshdurai requested a review from a team as a code owner June 14, 2026 03:46
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.

Bedrock beta.messages missing .stream() method

1 participant