Skip to content

Commit c2f8d4e

Browse files
committed
chore: Fix defaults in dto
1 parent d17942d commit c2f8d4e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

asknews_sdk/dto/deepnews.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,25 @@ class CreateDeepNewsRequest(BaseSchema):
8989
] = False
9090
filter_params: Annotated[
9191
Optional[Dict[str, Any]],
92-
Field(None, title="Any filter param available on the /news endpoint."),
93-
]
92+
Field(title="Any filter param available on the /news endpoint."),
93+
] = None
9494
sources: Annotated[
9595
Optional[
9696
Union[
9797
Literal["asknews", "google"],
9898
List[Literal["asknews", "google"]],
9999
]
100100
],
101-
Field("asknews", title="Sources"),
102-
]
103-
search_depth: Annotated[Optional[int], Field(2, title="Search Depth")]
104-
max_depth: Annotated[Optional[int], Field(4, title="Max Depth")]
101+
Field(title="Sources"),
102+
] = "asknews"
103+
search_depth: Annotated[Optional[int], Field(title="Search Depth")] = 2
104+
max_depth: Annotated[Optional[int], Field(title="Max Depth")] = 4
105105
return_sources: Annotated[
106106
Optional[bool],
107107
Field(
108-
True, title="Return all collected sources as objects as the last token of the stream."
108+
title="Return all collected sources as objects as the last token of the stream."
109109
),
110-
]
110+
] = True
111111

112112

113113
class CreateDeepNewsResponse(BaseSchema):

0 commit comments

Comments
 (0)