Skip to content

Commit 9e999e4

Browse files
RobertCraigiestainless-app[bot]
authored andcommitted
fix(vertex): add missing beta methods (#1004)
1 parent 04a0508 commit 9e999e4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/anthropic/lib/vertex/_beta_messages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
class Messages(SyncAPIResource):
1515
create = FirstPartyMessagesAPI.create
16+
stream = FirstPartyMessagesAPI.stream
17+
count_tokens = FirstPartyMessagesAPI.count_tokens
1618

1719
@cached_property
1820
def with_raw_response(self) -> MessagesWithRawResponse:
@@ -36,6 +38,8 @@ def with_streaming_response(self) -> MessagesWithStreamingResponse:
3638

3739
class AsyncMessages(AsyncAPIResource):
3840
create = FirstPartyAsyncMessagesAPI.create
41+
stream = FirstPartyAsyncMessagesAPI.stream
42+
count_tokens = FirstPartyAsyncMessagesAPI.count_tokens
3943

4044
@cached_property
4145
def with_raw_response(self) -> AsyncMessagesWithRawResponse:

0 commit comments

Comments
 (0)