Skip to content

Commit 78d8ff9

Browse files
committed
Add default to None for optional fields
1 parent 70d25f0 commit 78d8ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/aws/langchain_aws/chat_models/bedrock_converse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ChatBedrockConverse(BaseChatModel):
6060
max_tokens: Optional[int] = None
6161
"""Max tokens to generate."""
6262

63-
stop_sequences: Optional[List[str]] = Field(None, alias="stop")
63+
stop_sequences: Optional[List[str]] = Field(default=None, alias="stop")
6464
"""Stop generation if any of these substrings occurs."""
6565

6666
temperature: Optional[float] = None
@@ -100,7 +100,7 @@ class ChatBedrockConverse(BaseChatModel):
100100
have an ARN associated with them.
101101
"""
102102

103-
endpoint_url: Optional[str] = Field(None, alias="base_url")
103+
endpoint_url: Optional[str] = Field(default=None, alias="base_url")
104104
"""Needed if you don't want to default to us-east-1 endpoint"""
105105

106106
config: Any = None

0 commit comments

Comments
 (0)