We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c43eb6d commit e5656bcCopy full SHA for e5656bc
1 file changed
asknews_sdk/dto/deepnews.py
@@ -86,7 +86,15 @@ class CreateDeepNewsRequest(BaseSchema):
86
Optional[Dict[str, Any]],
87
Field(None, title="Any filter param available on the /news endpoint."),
88
]
89
- sources: Annotated[Optional[List[str]], Field(["asknews"], title="Sources")]
+ sources: Annotated[
90
+ Optional[
91
+ Union[
92
+ Literal["asknews", "google"],
93
+ List[Literal["asknews", "google"]],
94
+ ]
95
+ ],
96
+ Field("asknews", title="Sources"),
97
98
search_depth: Annotated[Optional[int], Field(2, title="Search Depth")]
99
max_depth: Annotated[Optional[int], Field(4, title="Max Depth")]
100
return_sources: Annotated[
0 commit comments