perplexityai 0.14.0__py3-none-any.whl → 0.16.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.14.0" # x-release-please-version
4
+ __version__ = "0.16.0" # x-release-please-version
@@ -52,6 +52,7 @@ 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_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
55
56
  search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
56
57
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
58
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -81,6 +82,7 @@ class SearchResource(SyncAPIResource):
81
82
  "max_results": max_results,
82
83
  "max_tokens": max_tokens,
83
84
  "max_tokens_per_page": max_tokens_per_page,
85
+ "search_domain_filter": search_domain_filter,
84
86
  "search_mode": search_mode,
85
87
  },
86
88
  search_create_params.SearchCreateParams,
@@ -120,6 +122,7 @@ class AsyncSearchResource(AsyncAPIResource):
120
122
  max_results: int | Omit = omit,
121
123
  max_tokens: int | Omit = omit,
122
124
  max_tokens_per_page: int | Omit = omit,
125
+ search_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
123
126
  search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
124
127
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
125
128
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -149,6 +152,7 @@ class AsyncSearchResource(AsyncAPIResource):
149
152
  "max_results": max_results,
150
153
  "max_tokens": max_tokens,
151
154
  "max_tokens_per_page": max_tokens_per_page,
155
+ "search_domain_filter": search_domain_filter,
152
156
  "search_mode": search_mode,
153
157
  },
154
158
  search_create_params.SearchCreateParams,
@@ -21,4 +21,6 @@ class SearchCreateParams(TypedDict, total=False):
21
21
 
22
22
  max_tokens_per_page: int
23
23
 
24
+ search_domain_filter: Optional[SequenceNotStr[str]]
25
+
24
26
  search_mode: Optional[Literal["web", "academic", "sec"]]
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perplexityai
3
- Version: 0.14.0
3
+ Version: 0.16.0
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
7
- Author: Perplexity
7
+ Author-email: Perplexity <api@perplexity.ai>
8
8
  License: Apache-2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
@@ -46,7 +46,7 @@ It is generated with [Stainless](https://www.stainless.com/).
46
46
 
47
47
  ## Documentation
48
48
 
49
- The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
49
+ The REST API documentation can be found on [docs.perplexity.ai](https://docs.perplexity.ai/). The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
50
50
 
51
51
  ## Installation
52
52
 
@@ -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=fJGOwcjY6lFfX7I7tUtfxwSpPhIlddGJz58x9orVjn8,163
14
+ perplexity/_version.py,sha256=g1FhJn7H2pXQZpnj9gVqF7JX0gtpFIFT38_wAs5s47k,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=WEYqHwqIJcjnCa_omOVgzKuZwQtqK8pirR2OieLSabA,7298
30
+ perplexity/resources/search.py,sha256=XdN8MKrCkaZV05zvIEPsCYoI_qSJ1kUV8HgxDILNO0c,7580
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=8K_Px2vrQ06GnyAHi89wDPV-6-iLkXaOAZ8HWkYPG1g,559
40
+ perplexity/types/search_create_params.py,sha256=7fW_8paHsnejAlG6BHGKG1--2Vi-jKeuJOG6kcmOFI8,616
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.14.0.dist-info/METADATA,sha256=-mdezuTZlUrTFtSswPM6pHth7XvsSYjTv2qx9vBHy_U,16552
62
- perplexityai-0.14.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
- perplexityai-0.14.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
- perplexityai-0.14.0.dist-info/RECORD,,
61
+ perplexityai-0.16.0.dist-info/METADATA,sha256=mg4e2xQAWOmVvSgJLQ6cuZTdWi_M4x8tjK28KFeAiT4,16672
62
+ perplexityai-0.16.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
+ perplexityai-0.16.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
+ perplexityai-0.16.0.dist-info/RECORD,,