File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
zhipuai/api_resource/web_search Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ cli = ["typer"]
4545# An extra used to be able to add extended testing.
4646# Please use new-line on formatting to make it easier to add new packages without
4747# merge-conflicts
48- extended_testing = [" langchain" ]
48+ extended_testing = [
49+ " langchain" ,
50+ ]
4951
5052[tool .ruff .lint ]
5153select = [
@@ -64,7 +66,9 @@ indent-style = "tab"
6466docstring-code-format = true
6567
6668[tool .coverage .run ]
67- omit = [" tests/*" ]
69+ omit = [
70+ " tests/*" ,
71+ ]
6872
6973[build-system ]
7074requires = [" poetry-core>=1.0.0" , " poetry-plugin-pypi-mirror==0.4.2" ]
Original file line number Diff line number Diff line change @@ -39,6 +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+ location : Optional [str ] | NotGiven = NOT_GIVEN ,
4243 extra_headers : Headers | None = None ,
4344 extra_body : Body | None = None ,
4445 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
@@ -56,6 +57,7 @@ def web_search(
5657 "search_recency_filter" : search_recency_filter ,
5758 "content_size" : content_size ,
5859 "search_intent" : search_intent ,
60+ "location" : location
5961 })
6062 return self ._post (
6163 "/web_search" ,
You can’t perform that action at this time.
0 commit comments