perplexityai 0.9.0__py3-none-any.whl → 0.10.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of perplexityai might be problematic. Click here for more details.

perplexity/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "perplexity"
4
- __version__ = "0.9.0" # x-release-please-version
4
+ __version__ = "0.10.0" # x-release-please-version
@@ -48,18 +48,10 @@ class SearchResource(SyncAPIResource):
48
48
  self,
49
49
  *,
50
50
  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,
54
51
  max_results: int | NotGiven = NOT_GIVEN,
55
52
  max_tokens: int | NotGiven = NOT_GIVEN,
56
53
  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,
61
54
  search_mode: Optional[Literal["web", "academic", "sec"]] | NotGiven = NOT_GIVEN,
62
- search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | NotGiven = NOT_GIVEN,
63
55
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
64
56
  # The extra values given here take precedence over values defined on the client or passed to this method.
65
57
  extra_headers: Headers | None = None,
@@ -84,18 +76,10 @@ class SearchResource(SyncAPIResource):
84
76
  body=maybe_transform(
85
77
  {
86
78
  "query": query,
87
- "country": country,
88
- "last_updated_after_filter": last_updated_after_filter,
89
- "last_updated_before_filter": last_updated_before_filter,
90
79
  "max_results": max_results,
91
80
  "max_tokens": max_tokens,
92
81
  "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,
97
82
  "search_mode": search_mode,
98
- "search_recency_filter": search_recency_filter,
99
83
  },
100
84
  search_create_params.SearchCreateParams,
101
85
  ),
@@ -130,18 +114,10 @@ class AsyncSearchResource(AsyncAPIResource):
130
114
  self,
131
115
  *,
132
116
  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,
136
117
  max_results: int | NotGiven = NOT_GIVEN,
137
118
  max_tokens: int | NotGiven = NOT_GIVEN,
138
119
  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,
143
120
  search_mode: Optional[Literal["web", "academic", "sec"]] | NotGiven = NOT_GIVEN,
144
- search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | NotGiven = NOT_GIVEN,
145
121
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
146
122
  # The extra values given here take precedence over values defined on the client or passed to this method.
147
123
  extra_headers: Headers | None = None,
@@ -166,18 +142,10 @@ class AsyncSearchResource(AsyncAPIResource):
166
142
  body=await async_maybe_transform(
167
143
  {
168
144
  "query": query,
169
- "country": country,
170
- "last_updated_after_filter": last_updated_after_filter,
171
- "last_updated_before_filter": last_updated_before_filter,
172
145
  "max_results": max_results,
173
146
  "max_tokens": max_tokens,
174
147
  "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,
179
148
  "search_mode": search_mode,
180
- "search_recency_filter": search_recency_filter,
181
149
  },
182
150
  search_create_params.SearchCreateParams,
183
151
  ),
@@ -13,26 +13,10 @@ __all__ = ["SearchCreateParams"]
13
13
  class SearchCreateParams(TypedDict, total=False):
14
14
  query: Required[Union[str, SequenceNotStr[str]]]
15
15
 
16
- country: Optional[str]
17
-
18
- last_updated_after_filter: Optional[str]
19
-
20
- last_updated_before_filter: Optional[str]
21
-
22
16
  max_results: int
23
17
 
24
18
  max_tokens: int
25
19
 
26
20
  max_tokens_per_page: int
27
21
 
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
-
36
22
  search_mode: Optional[Literal["web", "academic", "sec"]]
37
-
38
- search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perplexityai
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: The official Python library for the perplexity API
5
5
  Project-URL: Homepage, https://github.com/ppl-ai/perplexity-py
6
6
  Project-URL: Repository, https://github.com/ppl-ai/perplexity-py
@@ -11,7 +11,7 @@ perplexity/_resource.py,sha256=Pgc8KNBsIc1ltJn94uhDcDl0-3n5RLbe3iC2AiiNRnE,1124
11
11
  perplexity/_response.py,sha256=bpqzmVGq6jnivoMkUgt3OI0Rh6xHd6BMcp5PHgSFPb0,28842
12
12
  perplexity/_streaming.py,sha256=SQ61v42gFmNiO57uMFUZMAuDlGE0n_EulkZcPgJXt4U,10116
13
13
  perplexity/_types.py,sha256=XZYv2_G7oQGhQkjI28-TFIMP_yZZV590TRuKAoLJ3wM,7300
14
- perplexity/_version.py,sha256=qqMxe_sdogOPruxdoVwbY4xWqDq8Ie0WQL2qBdoymLg,162
14
+ perplexity/_version.py,sha256=wMd_e_2KT2gFMBL3gf_yIjVRS3s3vm2EgP5KIx529P4,163
15
15
  perplexity/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  perplexity/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  perplexity/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -27,7 +27,7 @@ perplexity/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,
27
27
  perplexity/_utils/_utils.py,sha256=D2QE7mVPNEJzaB50u8rvDQAUDS5jx7JoeFD7zdj-TeI,12231
28
28
  perplexity/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  perplexity/resources/__init__.py,sha256=Tb4UViVZDl2k8DgP1lKfn08Qaqz1uiezsogWRW9YTfQ,1414
30
- perplexity/resources/search.py,sha256=3EqjYtS5EK457YAO0QXY5QutoqscbSqKKxkwM65sRqU,9270
30
+ perplexity/resources/search.py,sha256=YQzdtA6ZsD9DPI4PXVkxSh1HlampxiI-epd9O7dNrGo,7010
31
31
  perplexity/resources/async_/__init__.py,sha256=hvcoEKx4nCYPDoBSO_sk-uNVQ7y-fmNhzvAlvX19TIo,964
32
32
  perplexity/resources/async_/async_.py,sha256=p1-C_8m2cdS0NR3oa7FfdM8gxHH13LQWX6c9lh1gnFo,3510
33
33
  perplexity/resources/async_/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
@@ -37,7 +37,7 @@ perplexity/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH
37
37
  perplexity/resources/chat/chat.py,sha256=P143HQo1m9MknnYtSq4JzmDofDtGHlXHzTaLEyr1a7k,3656
38
38
  perplexity/resources/chat/completions.py,sha256=tHOAzaktVNOaQBZCMgdz3sgdyguy2l7UOGENLj3k7iQ,19675
39
39
  perplexity/types/__init__.py,sha256=ZONTqk9Xtih2BkldS3hQyCK5fO6dsUpMct8WUDCvBq0,491
40
- perplexity/types/search_create_params.py,sha256=RHKT4toTErSF4T5g0DYD9DTDFDOvjKF0BIa0t5Pv7bk,916
40
+ perplexity/types/search_create_params.py,sha256=TENCoRI6XQhag-593m5qIsT_vHZYhuX4LLtCZnFgjE0,528
41
41
  perplexity/types/search_create_response.py,sha256=lOteaJs4qpULkx5GLtEs6HhetqIBhM0I1AC1moWTeI8,426
42
42
  perplexity/types/async_/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
43
43
  perplexity/types/async_/chat/__init__.py,sha256=xo2Cya_CfjEBRos2yvW_Wrq39PZiXFBT7ukZZBNvIUM,552
@@ -58,7 +58,7 @@ perplexity/types/shared/usage_info.py,sha256=_jE7Nal9cMxtEpJjT4t2SAs6z3MufrjwPug
58
58
  perplexity/types/shared_params/__init__.py,sha256=v5gr6-wq7IWgrQ8un401oApylzh3KnsIF_ilz-roX0s,241
59
59
  perplexity/types/shared_params/api_public_search_result.py,sha256=n4VUQnGOFGGWUdwYd8P5o-vEqZKhRuI5R0dBs_ZsHtE,418
60
60
  perplexity/types/shared_params/chat_message_input.py,sha256=BsNwhjwOFydvUo2OfrF9AHx--a1uPidSxdDyBGrK-sc,6690
61
- perplexityai-0.9.0.dist-info/METADATA,sha256=paGKbAq4kSRqNEvoY4WIL7bwXCpe3V4U74fr48CqUjg,15980
62
- perplexityai-0.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
- perplexityai-0.9.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
- perplexityai-0.9.0.dist-info/RECORD,,
61
+ perplexityai-0.10.0.dist-info/METADATA,sha256=0YEPDZyoJVPUqJ1FRpzED5J6Is7lAIDQY3eckvSUx38,15981
62
+ perplexityai-0.10.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
+ perplexityai-0.10.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
+ perplexityai-0.10.0.dist-info/RECORD,,