Skip to content

Commit 6a0b925

Browse files
author
zhengweijun
committed
Merge branch 'main' into feat-agent-fix
# Conflicts: # pyproject.toml
2 parents b3e0808 + 50361a3 commit 6a0b925

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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]
5153
select = [
@@ -64,7 +66,9 @@ indent-style = "tab"
6466
docstring-code-format = true
6567

6668
[tool.coverage.run]
67-
omit = ["tests/*"]
69+
omit = [
70+
"tests/*",
71+
]
6872

6973
[build-system]
7074
requires = ["poetry-core>=1.0.0", "poetry-plugin-pypi-mirror==0.4.2"]

zhipuai/api_resource/web_search/web_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)