From fe5f5ac289dc813879899c763bfb81efc32fbffd Mon Sep 17 00:00:00 2001 From: ushaganeshdurai Date: Sun, 14 Jun 2026 09:15:15 +0530 Subject: [PATCH] Fix: add missing .stream() method to Bedrock beta.messages --- src/anthropic/lib/bedrock/_beta_messages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/anthropic/lib/bedrock/_beta_messages.py b/src/anthropic/lib/bedrock/_beta_messages.py index 332f6fbab..212436dc2 100644 --- a/src/anthropic/lib/bedrock/_beta_messages.py +++ b/src/anthropic/lib/bedrock/_beta_messages.py @@ -13,6 +13,7 @@ class Messages(SyncAPIResource): create = FirstPartyMessagesAPI.create + stream = FirstPartyMessagesAPI.stream @cached_property def with_raw_response(self) -> MessagesWithRawResponse: @@ -36,6 +37,7 @@ def with_streaming_response(self) -> MessagesWithStreamingResponse: class AsyncMessages(AsyncAPIResource): create = FirstPartyAsyncMessagesAPI.create + stream = FirstPartyAsyncMessagesAPI.stream @cached_property def with_raw_response(self) -> AsyncMessagesWithRawResponse: