Skip to content

Commit bf7baa5

Browse files
committed
clean up
1 parent ac8f853 commit bf7baa5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jigsawstack/search.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,16 @@ def search(self, params: SearchParams) -> SearchResponse:
7878
ai_overview = params.get("ai_overview", "True")
7979
safe_search = params.get("safe_search", "moderate")
8080
spell_check = params.get("spell_check", "True")
81+
82+
body = {
83+
"byo_urls": params.get("byo_urls", []),
84+
}
8185
path = f"/web/search?query={query}&ai_overview={ai_overview}&safe_search={safe_search}&spell_check={spell_check}"
8286
resp = Request(
8387
config=self.config,
8488
path=path,
85-
params=cast(Dict[Any, Any], params),
86-
verb="GET",
89+
params=cast(Dict[Any, Any], body),
90+
verb="POST",
8791
).perform_with_content()
8892

8993
return resp

0 commit comments

Comments
 (0)