Skip to content

Commit cbfbde4

Browse files
committed
Add default to None for optional fields
1 parent 046efe5 commit cbfbde4

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

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

274274
temperature: Optional[float] = None
@@ -308,7 +308,7 @@ class Joke(BaseModel):
308308
have an ARN associated with them.
309309
"""
310310

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

314314
config: Any = None

0 commit comments

Comments
 (0)