perplexityai 0.16.1__py3-none-any.whl → 0.17.1__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 +1 -1
- perplexity/resources/search.py +12 -0
- perplexity/types/search_create_params.py +6 -0
- {perplexityai-0.16.1.dist-info → perplexityai-0.17.1.dist-info}/METADATA +2 -2
- {perplexityai-0.16.1.dist-info → perplexityai-0.17.1.dist-info}/RECORD +7 -7
- {perplexityai-0.16.1.dist-info → perplexityai-0.17.1.dist-info}/WHEEL +0 -0
- {perplexityai-0.16.1.dist-info → perplexityai-0.17.1.dist-info}/licenses/LICENSE +0 -0
perplexity/_version.py
CHANGED
perplexity/resources/search.py
CHANGED
|
@@ -52,8 +52,11 @@ class SearchResource(SyncAPIResource):
|
|
|
52
52
|
max_results: int | Omit = omit,
|
|
53
53
|
max_tokens: int | Omit = omit,
|
|
54
54
|
max_tokens_per_page: int | Omit = omit,
|
|
55
|
+
search_after_date_filter: Optional[str] | Omit = omit,
|
|
56
|
+
search_before_date_filter: Optional[str] | Omit = omit,
|
|
55
57
|
search_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
56
58
|
search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
|
|
59
|
+
search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | Omit = omit,
|
|
57
60
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
61
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
62
|
extra_headers: Headers | None = None,
|
|
@@ -82,8 +85,11 @@ class SearchResource(SyncAPIResource):
|
|
|
82
85
|
"max_results": max_results,
|
|
83
86
|
"max_tokens": max_tokens,
|
|
84
87
|
"max_tokens_per_page": max_tokens_per_page,
|
|
88
|
+
"search_after_date_filter": search_after_date_filter,
|
|
89
|
+
"search_before_date_filter": search_before_date_filter,
|
|
85
90
|
"search_domain_filter": search_domain_filter,
|
|
86
91
|
"search_mode": search_mode,
|
|
92
|
+
"search_recency_filter": search_recency_filter,
|
|
87
93
|
},
|
|
88
94
|
search_create_params.SearchCreateParams,
|
|
89
95
|
),
|
|
@@ -122,8 +128,11 @@ class AsyncSearchResource(AsyncAPIResource):
|
|
|
122
128
|
max_results: int | Omit = omit,
|
|
123
129
|
max_tokens: int | Omit = omit,
|
|
124
130
|
max_tokens_per_page: int | Omit = omit,
|
|
131
|
+
search_after_date_filter: Optional[str] | Omit = omit,
|
|
132
|
+
search_before_date_filter: Optional[str] | Omit = omit,
|
|
125
133
|
search_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
126
134
|
search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
|
|
135
|
+
search_recency_filter: Optional[Literal["hour", "day", "week", "month", "year"]] | Omit = omit,
|
|
127
136
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
128
137
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
129
138
|
extra_headers: Headers | None = None,
|
|
@@ -152,8 +161,11 @@ class AsyncSearchResource(AsyncAPIResource):
|
|
|
152
161
|
"max_results": max_results,
|
|
153
162
|
"max_tokens": max_tokens,
|
|
154
163
|
"max_tokens_per_page": max_tokens_per_page,
|
|
164
|
+
"search_after_date_filter": search_after_date_filter,
|
|
165
|
+
"search_before_date_filter": search_before_date_filter,
|
|
155
166
|
"search_domain_filter": search_domain_filter,
|
|
156
167
|
"search_mode": search_mode,
|
|
168
|
+
"search_recency_filter": search_recency_filter,
|
|
157
169
|
},
|
|
158
170
|
search_create_params.SearchCreateParams,
|
|
159
171
|
),
|
|
@@ -21,6 +21,12 @@ class SearchCreateParams(TypedDict, total=False):
|
|
|
21
21
|
|
|
22
22
|
max_tokens_per_page: int
|
|
23
23
|
|
|
24
|
+
search_after_date_filter: Optional[str]
|
|
25
|
+
|
|
26
|
+
search_before_date_filter: Optional[str]
|
|
27
|
+
|
|
24
28
|
search_domain_filter: Optional[SequenceNotStr[str]]
|
|
25
29
|
|
|
26
30
|
search_mode: Optional[Literal["web", "academic", "sec"]]
|
|
31
|
+
|
|
32
|
+
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.
|
|
3
|
+
Version: 0.17.1
|
|
4
4
|
Summary: The official Python library for the perplexity API
|
|
5
5
|
Project-URL: Homepage, https://github.com/perplexityai/perplexity-py
|
|
6
6
|
Project-URL: Repository, https://github.com/perplexityai/perplexity-py
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
36
|
# Perplexity Python API library
|
|
@@ -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=0IcQb2A1XAarVUZD3Wgll7S8D4ps1qVXSu5-HEI7-vw,11254
|
|
13
13
|
perplexity/_types.py,sha256=BPuUCddonHjZ2AeEModCeb-zAYCRRT5XtxneIQhJxAk,7240
|
|
14
|
-
perplexity/_version.py,sha256=
|
|
14
|
+
perplexity/_version.py,sha256=9MtZV6H9yh-OVZAE2ejS49-VPwd0oJmWHXDrqlIqulU,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=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
|
|
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=
|
|
30
|
+
perplexity/resources/search.py,sha256=84N99MJj3Q1_lSjX-aEe6x2gRBvszxPh8np9Mq7bMag,8478
|
|
31
31
|
perplexity/resources/async_/__init__.py,sha256=hvcoEKx4nCYPDoBSO_sk-uNVQ7y-fmNhzvAlvX19TIo,964
|
|
32
32
|
perplexity/resources/async_/async_.py,sha256=XzvC3AMbXXQ9mqe9TI10ZSmEuXaWPRwNC4E7AjvNdg0,3534
|
|
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=yvQmxxpr7k9-A8UwUukL5QIXHahfsdFjHQqRFWWbkzE,3680
|
|
38
38
|
perplexity/resources/chat/completions.py,sha256=fmQv0dEC1YWQr7H8Wv5sWTtxazZ2ZEf_pryu_luCVt0,45754
|
|
39
39
|
perplexity/types/__init__.py,sha256=LpZgQmlRWsFC0_xIzJhxSd2VY-vxDdAplR0Oqmtnu4M,544
|
|
40
|
-
perplexity/types/search_create_params.py,sha256=
|
|
40
|
+
perplexity/types/search_create_params.py,sha256=wMTmCNau8hlEcVzQ-CPnWr01Sglm-PiEBKDxmeQ4JW8,793
|
|
41
41
|
perplexity/types/search_create_response.py,sha256=u4biwHjn5krPDOTRuolb1DyCPBRNATsuFs_Hynqxgro,465
|
|
42
42
|
perplexity/types/stream_chunk.py,sha256=GxPn4KENvDhhJ8sLc297_fd3XrhZeEansYbTtjl21kA,782
|
|
43
43
|
perplexity/types/async_/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
@@ -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=JPT8jm4IALOc51HgTQGUiMbSgTt10oeh4zti4KjcnkU,469
|
|
60
60
|
perplexity/types/shared_params/chat_message_input.py,sha256=BsNwhjwOFydvUo2OfrF9AHx--a1uPidSxdDyBGrK-sc,6690
|
|
61
|
-
perplexityai-0.
|
|
62
|
-
perplexityai-0.
|
|
63
|
-
perplexityai-0.
|
|
64
|
-
perplexityai-0.
|
|
61
|
+
perplexityai-0.17.1.dist-info/METADATA,sha256=fEE7fd0zeLtvSwH7NURAg8-log00fBd8sXwp9qxBTGQ,16672
|
|
62
|
+
perplexityai-0.17.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
63
|
+
perplexityai-0.17.1.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
|
|
64
|
+
perplexityai-0.17.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|