Skip to content

Commit dd16483

Browse files
committed
chore(client): sync SequenceNotStr over to custom stream methods
1 parent fe92af0 commit dd16483

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/anthropic/resources/beta/messages/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def stream(
992992
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven = NOT_GIVEN,
993993
metadata: BetaMetadataParam | NotGiven = NOT_GIVEN,
994994
service_tier: Literal["auto", "standard_only"] | NotGiven = NOT_GIVEN,
995-
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
995+
stop_sequences: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
996996
system: Union[str, Iterable[BetaTextBlockParam]] | NotGiven = NOT_GIVEN,
997997
temperature: float | NotGiven = NOT_GIVEN,
998998
thinking: BetaThinkingConfigParam | NotGiven = NOT_GIVEN,
@@ -2233,7 +2233,7 @@ def stream(
22332233
container: Optional[str] | NotGiven = NOT_GIVEN,
22342234
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven = NOT_GIVEN,
22352235
service_tier: Literal["auto", "standard_only"] | NotGiven = NOT_GIVEN,
2236-
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
2236+
stop_sequences: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
22372237
system: Union[str, Iterable[BetaTextBlockParam]] | NotGiven = NOT_GIVEN,
22382238
temperature: float | NotGiven = NOT_GIVEN,
22392239
thinking: BetaThinkingConfigParam | NotGiven = NOT_GIVEN,

src/anthropic/resources/messages/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ def stream(
967967
metadata: MetadataParam | NotGiven = NOT_GIVEN,
968968
container: Optional[str] | NotGiven = NOT_GIVEN,
969969
service_tier: Literal["auto", "standard_only"] | NotGiven = NOT_GIVEN,
970-
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
970+
stop_sequences: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
971971
system: Union[str, Iterable[TextBlockParam]] | NotGiven = NOT_GIVEN,
972972
temperature: float | NotGiven = NOT_GIVEN,
973973
top_k: int | NotGiven = NOT_GIVEN,
@@ -2150,7 +2150,7 @@ def stream(
21502150
metadata: MetadataParam | NotGiven = NOT_GIVEN,
21512151
container: Optional[str] | NotGiven = NOT_GIVEN,
21522152
service_tier: Literal["auto", "standard_only"] | NotGiven = NOT_GIVEN,
2153-
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
2153+
stop_sequences: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
21542154
system: Union[str, Iterable[TextBlockParam]] | NotGiven = NOT_GIVEN,
21552155
temperature: float | NotGiven = NOT_GIVEN,
21562156
top_k: int | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)