Skip to content

Commit 7f38b2f

Browse files
feat(api): manual updates
1 parent e93e351 commit 7f38b2f

File tree

4 files changed

+2
-66
lines changed

4 files changed

+2
-66
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-c521eee7c440c9b8a6262ec75d47eb3f52a2735f1c3f733b80bff8ca1f98b153.yml
3-
openapi_spec_hash: 7b5a570eb6f33531a1174509877830d4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-deb5905eb84985f1017bc9a16c10bbca104ea0b85b46e05b68693a4f8de1aff8.yml
3+
openapi_spec_hash: 9224a8248d0a30a2d79baac3833d67d2
44
config_hash: 5eb378664dbbf04226c3eeb86103761d

src/perplexity/resources/search.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,10 @@ def create(
4848
self,
4949
*,
5050
query: Union[str, SequenceNotStr[str]],
51-
country: Optional[str] | NotGiven = NOT_GIVEN,
52-
last_updated_after_filter: Optional[str] | NotGiven = NOT_GIVEN,
53-
last_updated_before_filter: Optional[str] | NotGiven = NOT_GIVEN,
5451
max_results: int | NotGiven = NOT_GIVEN,
5552
max_tokens: int | NotGiven = NOT_GIVEN,
5653
max_tokens_per_page: int | NotGiven = NOT_GIVEN,
57-
safe_search: Optional[bool] | NotGiven = NOT_GIVEN,
58-
search_after_date_filter: Optional[str] | NotGiven = NOT_GIVEN,
59-
search_before_date_filter: Optional[str] | NotGiven = NOT_GIVEN,
60-
search_domain_filter: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
6154
search_mode: Optional[Literal["web", "academic", "sec"]] | NotGiven = NOT_GIVEN,
62-
search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | NotGiven = NOT_GIVEN,
6355
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6456
# The extra values given here take precedence over values defined on the client or passed to this method.
6557
extra_headers: Headers | None = None,
@@ -84,18 +76,10 @@ def create(
8476
body=maybe_transform(
8577
{
8678
"query": query,
87-
"country": country,
88-
"last_updated_after_filter": last_updated_after_filter,
89-
"last_updated_before_filter": last_updated_before_filter,
9079
"max_results": max_results,
9180
"max_tokens": max_tokens,
9281
"max_tokens_per_page": max_tokens_per_page,
93-
"safe_search": safe_search,
94-
"search_after_date_filter": search_after_date_filter,
95-
"search_before_date_filter": search_before_date_filter,
96-
"search_domain_filter": search_domain_filter,
9782
"search_mode": search_mode,
98-
"search_recency_filter": search_recency_filter,
9983
},
10084
search_create_params.SearchCreateParams,
10185
),
@@ -130,18 +114,10 @@ async def create(
130114
self,
131115
*,
132116
query: Union[str, SequenceNotStr[str]],
133-
country: Optional[str] | NotGiven = NOT_GIVEN,
134-
last_updated_after_filter: Optional[str] | NotGiven = NOT_GIVEN,
135-
last_updated_before_filter: Optional[str] | NotGiven = NOT_GIVEN,
136117
max_results: int | NotGiven = NOT_GIVEN,
137118
max_tokens: int | NotGiven = NOT_GIVEN,
138119
max_tokens_per_page: int | NotGiven = NOT_GIVEN,
139-
safe_search: Optional[bool] | NotGiven = NOT_GIVEN,
140-
search_after_date_filter: Optional[str] | NotGiven = NOT_GIVEN,
141-
search_before_date_filter: Optional[str] | NotGiven = NOT_GIVEN,
142-
search_domain_filter: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
143120
search_mode: Optional[Literal["web", "academic", "sec"]] | NotGiven = NOT_GIVEN,
144-
search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | NotGiven = NOT_GIVEN,
145121
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
146122
# The extra values given here take precedence over values defined on the client or passed to this method.
147123
extra_headers: Headers | None = None,
@@ -166,18 +142,10 @@ async def create(
166142
body=await async_maybe_transform(
167143
{
168144
"query": query,
169-
"country": country,
170-
"last_updated_after_filter": last_updated_after_filter,
171-
"last_updated_before_filter": last_updated_before_filter,
172145
"max_results": max_results,
173146
"max_tokens": max_tokens,
174147
"max_tokens_per_page": max_tokens_per_page,
175-
"safe_search": safe_search,
176-
"search_after_date_filter": search_after_date_filter,
177-
"search_before_date_filter": search_before_date_filter,
178-
"search_domain_filter": search_domain_filter,
179148
"search_mode": search_mode,
180-
"search_recency_filter": search_recency_filter,
181149
},
182150
search_create_params.SearchCreateParams,
183151
),

src/perplexity/types/search_create_params.py

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

16-
country: Optional[str]
17-
18-
last_updated_after_filter: Optional[str]
19-
20-
last_updated_before_filter: Optional[str]
21-
2216
max_results: int
2317

2418
max_tokens: int
2519

2620
max_tokens_per_page: int
2721

28-
safe_search: Optional[bool]
29-
30-
search_after_date_filter: Optional[str]
31-
32-
search_before_date_filter: Optional[str]
33-
34-
search_domain_filter: Optional[SequenceNotStr[str]]
35-
3622
search_mode: Optional[Literal["web", "academic", "sec"]]
37-
38-
search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]]

tests/api_resources/test_search.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,10 @@ 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",
34-
last_updated_after_filter="last_updated_after_filter",
35-
last_updated_before_filter="last_updated_before_filter",
3633
max_results=0,
3734
max_tokens=0,
3835
max_tokens_per_page=0,
39-
safe_search=True,
40-
search_after_date_filter="search_after_date_filter",
41-
search_before_date_filter="search_before_date_filter",
42-
search_domain_filter=["string"],
4336
search_mode="web",
44-
search_recency_filter="hour",
4537
)
4638
assert_matches_type(SearchCreateResponse, search, path=["response"])
4739

@@ -90,18 +82,10 @@ async def test_method_create(self, async_client: AsyncPerplexity) -> None:
9082
async def test_method_create_with_all_params(self, async_client: AsyncPerplexity) -> None:
9183
search = await async_client.search.create(
9284
query="string",
93-
country="country",
94-
last_updated_after_filter="last_updated_after_filter",
95-
last_updated_before_filter="last_updated_before_filter",
9685
max_results=0,
9786
max_tokens=0,
9887
max_tokens_per_page=0,
99-
safe_search=True,
100-
search_after_date_filter="search_after_date_filter",
101-
search_before_date_filter="search_before_date_filter",
102-
search_domain_filter=["string"],
10388
search_mode="web",
104-
search_recency_filter="hour",
10589
)
10690
assert_matches_type(SearchCreateResponse, search, path=["response"])
10791

0 commit comments

Comments
 (0)