Skip to content

Commit d0b1071

Browse files
feat(api): manual updates
1 parent 6642343 commit d0b1071

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-deb5905eb84985f1017bc9a16c10bbca104ea0b85b46e05b68693a4f8de1aff8.yml
3-
openapi_spec_hash: 9224a8248d0a30a2d79baac3833d67d2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-aba0c21c569842e93e17b69cae9cee58d389fce9c2482f4d251fd8727db05679.yml
3+
openapi_spec_hash: 3d01b1c1425f7d43a8acf8b99bb9b321
44
config_hash: 5eb378664dbbf04226c3eeb86103761d

src/perplexity/resources/search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def create(
4848
self,
4949
*,
5050
query: Union[str, SequenceNotStr[str]],
51+
country: Optional[str] | Omit = omit,
5152
max_results: int | Omit = omit,
5253
max_tokens: int | Omit = omit,
5354
max_tokens_per_page: int | Omit = omit,
@@ -76,6 +77,7 @@ def create(
7677
body=maybe_transform(
7778
{
7879
"query": query,
80+
"country": country,
7981
"max_results": max_results,
8082
"max_tokens": max_tokens,
8183
"max_tokens_per_page": max_tokens_per_page,
@@ -114,6 +116,7 @@ async def create(
114116
self,
115117
*,
116118
query: Union[str, SequenceNotStr[str]],
119+
country: Optional[str] | Omit = omit,
117120
max_results: int | Omit = omit,
118121
max_tokens: int | Omit = omit,
119122
max_tokens_per_page: int | Omit = omit,
@@ -142,6 +145,7 @@ async def create(
142145
body=await async_maybe_transform(
143146
{
144147
"query": query,
148+
"country": country,
145149
"max_results": max_results,
146150
"max_tokens": max_tokens,
147151
"max_tokens_per_page": max_tokens_per_page,

src/perplexity/types/search_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
class SearchCreateParams(TypedDict, total=False):
1414
query: Required[Union[str, SequenceNotStr[str]]]
1515

16+
country: Optional[str]
17+
1618
max_results: int
1719

1820
max_tokens: int

tests/api_resources/test_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def test_method_create(self, client: Perplexity) -> None:
3030
def test_method_create_with_all_params(self, client: Perplexity) -> None:
3131
search = client.search.create(
3232
query="string",
33+
country="country",
3334
max_results=0,
3435
max_tokens=0,
3536
max_tokens_per_page=0,
@@ -82,6 +83,7 @@ async def test_method_create(self, async_client: AsyncPerplexity) -> None:
8283
async def test_method_create_with_all_params(self, async_client: AsyncPerplexity) -> None:
8384
search = await async_client.search.create(
8485
query="string",
86+
country="country",
8587
max_results=0,
8688
max_tokens=0,
8789
max_tokens_per_page=0,

0 commit comments

Comments
 (0)