Skip to content

Commit 121342b

Browse files
author
jinhaiyang
committed
search support gl and hl
1 parent 88a3c7c commit 121342b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

zhipuai/api_resource/web_search/web_search.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ 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,
42+
location: Optional[str] | NotGiven = NOT_GIVEN,
4443
extra_headers: Headers | None = None,
4544
extra_body: Body | None = None,
4645
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
@@ -58,8 +57,7 @@ def web_search(
5857
"search_recency_filter": search_recency_filter,
5958
"content_size": content_size,
6059
"search_intent": search_intent,
61-
"gl": gl,
62-
"hl": hl
60+
"location": location
6361
})
6462
return self._post(
6563
"/web_search",

0 commit comments

Comments
 (0)