Skip to content

Commit 6d5557c

Browse files
committed
Add default to None for optional fields
1 parent f8cd77d commit 6d5557c

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
@@ -266,7 +266,7 @@ class Joke(BaseModel):
266266
max_tokens: Optional[int] = None
267267
"""Max tokens to generate."""
268268

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

272272
temperature: Optional[float] = None
@@ -306,7 +306,7 @@ class Joke(BaseModel):
306306
have an ARN associated with them.
307307
"""
308308

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

312312
config: Any = None

0 commit comments

Comments
 (0)