perplexityai 0.11.0__py3-none-any.whl → 0.12.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.11.0" # x-release-please-version
4
+ __version__ = "0.12.0" # x-release-please-version
@@ -27,7 +27,7 @@ class AsyncResource(SyncAPIResource):
27
27
  This property can be used as a prefix for any HTTP method call to return
28
28
  the raw response object instead of the parsed content.
29
29
 
30
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
30
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
31
31
  """
32
32
  return AsyncResourceWithRawResponse(self)
33
33
 
@@ -36,7 +36,7 @@ class AsyncResource(SyncAPIResource):
36
36
  """
37
37
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
38
 
39
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
39
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
40
40
  """
41
41
  return AsyncResourceWithStreamingResponse(self)
42
42
 
@@ -52,7 +52,7 @@ class AsyncAsyncResource(AsyncAPIResource):
52
52
  This property can be used as a prefix for any HTTP method call to return
53
53
  the raw response object instead of the parsed content.
54
54
 
55
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
55
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
56
56
  """
57
57
  return AsyncAsyncResourceWithRawResponse(self)
58
58
 
@@ -61,7 +61,7 @@ class AsyncAsyncResource(AsyncAPIResource):
61
61
  """
62
62
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
63
 
64
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
64
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
65
65
  """
66
66
  return AsyncAsyncResourceWithStreamingResponse(self)
67
67
 
@@ -27,7 +27,7 @@ class ChatResource(SyncAPIResource):
27
27
  This property can be used as a prefix for any HTTP method call to return
28
28
  the raw response object instead of the parsed content.
29
29
 
30
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
30
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
31
31
  """
32
32
  return ChatResourceWithRawResponse(self)
33
33
 
@@ -36,7 +36,7 @@ class ChatResource(SyncAPIResource):
36
36
  """
37
37
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
38
 
39
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
39
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
40
40
  """
41
41
  return ChatResourceWithStreamingResponse(self)
42
42
 
@@ -52,7 +52,7 @@ class AsyncChatResource(AsyncAPIResource):
52
52
  This property can be used as a prefix for any HTTP method call to return
53
53
  the raw response object instead of the parsed content.
54
54
 
55
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
55
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
56
56
  """
57
57
  return AsyncChatResourceWithRawResponse(self)
58
58
 
@@ -61,7 +61,7 @@ class AsyncChatResource(AsyncAPIResource):
61
61
  """
62
62
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
63
 
64
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
64
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
65
65
  """
66
66
  return AsyncChatResourceWithStreamingResponse(self)
67
67
 
@@ -32,7 +32,7 @@ class CompletionsResource(SyncAPIResource):
32
32
  This property can be used as a prefix for any HTTP method call to return
33
33
  the raw response object instead of the parsed content.
34
34
 
35
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
35
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
36
36
  """
37
37
  return CompletionsResourceWithRawResponse(self)
38
38
 
@@ -41,7 +41,7 @@ class CompletionsResource(SyncAPIResource):
41
41
  """
42
42
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
43
 
44
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
44
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
45
45
  """
46
46
  return CompletionsResourceWithStreamingResponse(self)
47
47
 
@@ -169,7 +169,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
169
169
  This property can be used as a prefix for any HTTP method call to return
170
170
  the raw response object instead of the parsed content.
171
171
 
172
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
172
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
173
173
  """
174
174
  return AsyncCompletionsResourceWithRawResponse(self)
175
175
 
@@ -178,7 +178,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
178
178
  """
179
179
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
180
180
 
181
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
181
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
182
182
  """
183
183
  return AsyncCompletionsResourceWithStreamingResponse(self)
184
184
 
@@ -27,7 +27,7 @@ class ChatResource(SyncAPIResource):
27
27
  This property can be used as a prefix for any HTTP method call to return
28
28
  the raw response object instead of the parsed content.
29
29
 
30
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
30
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
31
31
  """
32
32
  return ChatResourceWithRawResponse(self)
33
33
 
@@ -36,7 +36,7 @@ class ChatResource(SyncAPIResource):
36
36
  """
37
37
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
38
 
39
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
39
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
40
40
  """
41
41
  return ChatResourceWithStreamingResponse(self)
42
42
 
@@ -52,7 +52,7 @@ class AsyncChatResource(AsyncAPIResource):
52
52
  This property can be used as a prefix for any HTTP method call to return
53
53
  the raw response object instead of the parsed content.
54
54
 
55
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
55
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
56
56
  """
57
57
  return AsyncChatResourceWithRawResponse(self)
58
58
 
@@ -61,7 +61,7 @@ class AsyncChatResource(AsyncAPIResource):
61
61
  """
62
62
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
63
 
64
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
64
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
65
65
  """
66
66
  return AsyncChatResourceWithStreamingResponse(self)
67
67
 
@@ -32,7 +32,7 @@ class CompletionsResource(SyncAPIResource):
32
32
  This property can be used as a prefix for any HTTP method call to return
33
33
  the raw response object instead of the parsed content.
34
34
 
35
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
35
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
36
36
  """
37
37
  return CompletionsResourceWithRawResponse(self)
38
38
 
@@ -41,7 +41,7 @@ class CompletionsResource(SyncAPIResource):
41
41
  """
42
42
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
43
 
44
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
44
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
45
45
  """
46
46
  return CompletionsResourceWithStreamingResponse(self)
47
47
 
@@ -196,7 +196,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
196
196
  This property can be used as a prefix for any HTTP method call to return
197
197
  the raw response object instead of the parsed content.
198
198
 
199
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
199
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
200
200
  """
201
201
  return AsyncCompletionsResourceWithRawResponse(self)
202
202
 
@@ -205,7 +205,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
205
205
  """
206
206
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
207
207
 
208
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
208
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
209
209
  """
210
210
  return AsyncCompletionsResourceWithStreamingResponse(self)
211
211
 
@@ -31,7 +31,7 @@ class SearchResource(SyncAPIResource):
31
31
  This property can be used as a prefix for any HTTP method call to return
32
32
  the raw response object instead of the parsed content.
33
33
 
34
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
34
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
35
35
  """
36
36
  return SearchResourceWithRawResponse(self)
37
37
 
@@ -40,7 +40,7 @@ class SearchResource(SyncAPIResource):
40
40
  """
41
41
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42
42
 
43
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
43
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
44
44
  """
45
45
  return SearchResourceWithStreamingResponse(self)
46
46
 
@@ -99,7 +99,7 @@ class AsyncSearchResource(AsyncAPIResource):
99
99
  This property can be used as a prefix for any HTTP method call to return
100
100
  the raw response object instead of the parsed content.
101
101
 
102
- For more information, see https://www.github.com/ppl-ai/perplexity-py#accessing-raw-response-data-eg-headers
102
+ For more information, see https://www.github.com/perplexityai/perplexity-py#accessing-raw-response-data-eg-headers
103
103
  """
104
104
  return AsyncSearchResourceWithRawResponse(self)
105
105
 
@@ -108,7 +108,7 @@ class AsyncSearchResource(AsyncAPIResource):
108
108
  """
109
109
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
110
110
 
111
- For more information, see https://www.github.com/ppl-ai/perplexity-py#with_streaming_response
111
+ For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
112
112
  """
113
113
  return AsyncSearchResourceWithStreamingResponse(self)
114
114
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perplexityai
3
- Version: 0.11.0
3
+ Version: 0.12.0
4
4
  Summary: The official Python library for the perplexity API
5
- Project-URL: Homepage, https://github.com/ppl-ai/perplexity-py
6
- Project-URL: Repository, https://github.com/ppl-ai/perplexity-py
5
+ Project-URL: Homepage, https://github.com/perplexityai/perplexity-py
6
+ Project-URL: Repository, https://github.com/perplexityai/perplexity-py
7
7
  Author: Perplexity
8
8
  License: Apache-2.0
9
9
  Classifier: Intended Audience :: Developers
@@ -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/ppl-ai/perplexity-py/tree/main/api.md).
49
+ 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
 
@@ -96,7 +96,7 @@ for result in content.results:
96
96
 
97
97
  ## Chat Completions
98
98
 
99
- The full API of this library can be found in [api.md](https://github.com/ppl-ai/perplexity-py/tree/main/api.md).
99
+ The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
100
100
 
101
101
  ```python
102
102
  import os
@@ -336,7 +336,7 @@ client.with_options(timeout=5.0).chat.completions.create(
336
336
 
337
337
  On timeout, an `APITimeoutError` is thrown.
338
338
 
339
- Note that requests that time out are [retried twice by default](https://github.com/ppl-ai/perplexity-py/tree/main/#retries).
339
+ Note that requests that time out are [retried twice by default](https://github.com/perplexityai/perplexity-py/tree/main/#retries).
340
340
 
341
341
  ## Advanced
342
342
 
@@ -385,9 +385,9 @@ completion = response.parse() # get the object that `chat.completions.create()`
385
385
  print(completion.id)
386
386
  ```
387
387
 
388
- These methods return an [`APIResponse`](https://github.com/ppl-ai/perplexity-py/tree/main/src/perplexity/_response.py) object.
388
+ These methods return an [`APIResponse`](https://github.com/perplexityai/perplexity-py/tree/main/src/perplexity/_response.py) object.
389
389
 
390
- The async client returns an [`AsyncAPIResponse`](https://github.com/ppl-ai/perplexity-py/tree/main/src/perplexity/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
390
+ The async client returns an [`AsyncAPIResponse`](https://github.com/perplexityai/perplexity-py/tree/main/src/perplexity/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
391
391
 
392
392
  #### `.with_streaming_response`
393
393
 
@@ -499,7 +499,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
499
499
 
500
500
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
501
501
 
502
- We are keen for your feedback; please open an [issue](https://www.github.com/ppl-ai/perplexity-py/issues) with questions, bugs, or suggestions.
502
+ We are keen for your feedback; please open an [issue](https://www.github.com/perplexityai/perplexity-py/issues) with questions, bugs, or suggestions.
503
503
 
504
504
  ### Determining the installed version
505
505
 
@@ -518,4 +518,4 @@ Python 3.8 or higher.
518
518
 
519
519
  ## Contributing
520
520
 
521
- See [the contributing documentation](https://github.com/ppl-ai/perplexity-py/tree/main/./CONTRIBUTING.md).
521
+ See [the contributing documentation](https://github.com/perplexityai/perplexity-py/tree/main/./CONTRIBUTING.md).
@@ -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=BPuUCddonHjZ2AeEModCeb-zAYCRRT5XtxneIQhJxAk,7240
14
- perplexity/_version.py,sha256=4J1RPX9vt-Jx4av3mz_OvVCpbQH_TMJEFmfE2qBG1ak,163
14
+ perplexity/_version.py,sha256=_Qos24ldDIwii05zOluYsLPQqaaUym8lHaQWjOY80Q4,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,15 +27,15 @@ 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=lOm0NivrZPiho1O-svLjKKO1cEbSljET2PRA-ghERU8,7122
30
+ perplexity/resources/search.py,sha256=M72I8ZPJ_KxGwgn7FDm3kdvvRqeiFgps_Bce-AdGm8E,7146
31
31
  perplexity/resources/async_/__init__.py,sha256=hvcoEKx4nCYPDoBSO_sk-uNVQ7y-fmNhzvAlvX19TIo,964
32
- perplexity/resources/async_/async_.py,sha256=p1-C_8m2cdS0NR3oa7FfdM8gxHH13LQWX6c9lh1gnFo,3510
32
+ perplexity/resources/async_/async_.py,sha256=XzvC3AMbXXQ9mqe9TI10ZSmEuXaWPRwNC4E7AjvNdg0,3534
33
33
  perplexity/resources/async_/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
34
- perplexity/resources/async_/chat/chat.py,sha256=wOHHfLclvjAVv-btASi6EcdY5gJZQdwAdbR9Q9H4BKw,3658
35
- perplexity/resources/async_/chat/completions.py,sha256=SGN255OxsFpgYtRlMAPbM0ocyP91KtJYzfUmdFmri5k,13983
34
+ perplexity/resources/async_/chat/chat.py,sha256=M3hN3sfZKAt1C8FhOaWtxFPJAmPyE-GXkiU_LSN9EiA,3682
35
+ perplexity/resources/async_/chat/completions.py,sha256=xAhxfRXduWZy3JdCSLX7eTStd_rG55qsGqmsDqFI3gM,14007
36
36
  perplexity/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
37
- perplexity/resources/chat/chat.py,sha256=P143HQo1m9MknnYtSq4JzmDofDtGHlXHzTaLEyr1a7k,3656
38
- perplexity/resources/chat/completions.py,sha256=_TSvtJv5z3KBgfN_XgyMe7oW7mJVSWZzsVJ4UW9Y3AU,18751
37
+ perplexity/resources/chat/chat.py,sha256=yvQmxxpr7k9-A8UwUukL5QIXHahfsdFjHQqRFWWbkzE,3680
38
+ perplexity/resources/chat/completions.py,sha256=d70koq7kxMMMOsL4d7qNLz-meR35l4d2i-DIqKZl3no,18775
39
39
  perplexity/types/__init__.py,sha256=ZONTqk9Xtih2BkldS3hQyCK5fO6dsUpMct8WUDCvBq0,491
40
40
  perplexity/types/search_create_params.py,sha256=5cc01O0upHO7-dZrIHEi3KKhFYlCANUlhRSty4jQpHc,556
41
41
  perplexity/types/search_create_response.py,sha256=lOteaJs4qpULkx5GLtEs6HhetqIBhM0I1AC1moWTeI8,426
@@ -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.11.0.dist-info/METADATA,sha256=XtHJA07UACxnBDXf44Sh2AnhDA4vVwmHCI5S4JdJrQw,15981
62
- perplexityai-0.11.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
- perplexityai-0.11.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
- perplexityai-0.11.0.dist-info/RECORD,,
61
+ perplexityai-0.12.0.dist-info/METADATA,sha256=5UT7w2B6X6dI1nJpLnPCdVknnhXEF35M02YN64iJMi4,16035
62
+ perplexityai-0.12.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
+ perplexityai-0.12.0.dist-info/licenses/LICENSE,sha256=hkCriG3MT4vBhhc0roAOsrCE7IEDr1ywVEMonVHGmAQ,11340
64
+ perplexityai-0.12.0.dist-info/RECORD,,