Skip to content

Commit 88a3c7c

Browse files
author
jinhaiyang
committed
search support gl and hl
1 parent 361f779 commit 88a3c7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zhipuai/api_resource/web_search/web_search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def web_search(
3939
search_recency_filter: Optional[str] | NotGiven = NOT_GIVEN,
4040
content_size: Optional[str] | NotGiven = NOT_GIVEN,
4141
search_intent: Optional[bool] | NotGiven = NOT_GIVEN,
42+
gl: Optional[str] | NotGiven = NOT_GIVEN,
43+
hl: Optional[str] | NotGiven = NOT_GIVEN,
4244
extra_headers: Headers | None = None,
4345
extra_body: Body | None = None,
4446
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
@@ -56,6 +58,8 @@ def web_search(
5658
"search_recency_filter": search_recency_filter,
5759
"content_size": content_size,
5860
"search_intent": search_intent,
61+
"gl": gl,
62+
"hl": hl
5963
})
6064
return self._post(
6165
"/web_search",

0 commit comments

Comments
 (0)