perplexityai 0.11.0__tar.gz → 0.12.1__tar.gz

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.

Files changed (102) hide show
  1. perplexityai-0.12.1/.release-please-manifest.json +3 -0
  2. {perplexityai-0.11.0 → perplexityai-0.12.1}/CHANGELOG.md +31 -0
  3. {perplexityai-0.11.0 → perplexityai-0.12.1}/CONTRIBUTING.md +2 -2
  4. {perplexityai-0.11.0 → perplexityai-0.12.1}/PKG-INFO +10 -28
  5. {perplexityai-0.11.0 → perplexityai-0.12.1}/README.md +3 -21
  6. {perplexityai-0.11.0 → perplexityai-0.12.1}/pyproject.toml +4 -4
  7. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_version.py +1 -1
  8. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/async_/async_.py +4 -4
  9. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/async_/chat/chat.py +4 -4
  10. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/async_/chat/completions.py +4 -4
  11. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/chat/chat.py +4 -4
  12. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/chat/completions.py +4 -4
  13. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/search.py +4 -4
  14. perplexityai-0.11.0/.release-please-manifest.json +0 -3
  15. {perplexityai-0.11.0 → perplexityai-0.12.1}/.gitignore +0 -0
  16. {perplexityai-0.11.0 → perplexityai-0.12.1}/LICENSE +0 -0
  17. {perplexityai-0.11.0 → perplexityai-0.12.1}/SECURITY.md +0 -0
  18. {perplexityai-0.11.0 → perplexityai-0.12.1}/api.md +0 -0
  19. {perplexityai-0.11.0 → perplexityai-0.12.1}/bin/check-release-environment +0 -0
  20. {perplexityai-0.11.0 → perplexityai-0.12.1}/bin/publish-pypi +0 -0
  21. {perplexityai-0.11.0 → perplexityai-0.12.1}/examples/.keep +0 -0
  22. {perplexityai-0.11.0 → perplexityai-0.12.1}/noxfile.py +0 -0
  23. {perplexityai-0.11.0 → perplexityai-0.12.1}/release-please-config.json +0 -0
  24. {perplexityai-0.11.0 → perplexityai-0.12.1}/requirements-dev.lock +0 -0
  25. {perplexityai-0.11.0 → perplexityai-0.12.1}/requirements.lock +0 -0
  26. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/__init__.py +0 -0
  27. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_base_client.py +0 -0
  28. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_client.py +0 -0
  29. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_compat.py +0 -0
  30. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_constants.py +0 -0
  31. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_exceptions.py +0 -0
  32. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_files.py +0 -0
  33. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_models.py +0 -0
  34. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_qs.py +0 -0
  35. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_resource.py +0 -0
  36. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_response.py +0 -0
  37. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_streaming.py +0 -0
  38. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_types.py +0 -0
  39. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/__init__.py +0 -0
  40. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_compat.py +0 -0
  41. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_datetime_parse.py +0 -0
  42. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_logs.py +0 -0
  43. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_proxy.py +0 -0
  44. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_reflection.py +0 -0
  45. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_resources_proxy.py +0 -0
  46. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_streams.py +0 -0
  47. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_sync.py +0 -0
  48. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_transform.py +0 -0
  49. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_typing.py +0 -0
  50. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/_utils/_utils.py +0 -0
  51. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/lib/.keep +0 -0
  52. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/py.typed +0 -0
  53. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/__init__.py +0 -0
  54. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/async_/__init__.py +0 -0
  55. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/async_/chat/__init__.py +0 -0
  56. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/resources/chat/__init__.py +0 -0
  57. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/__init__.py +0 -0
  58. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/__init__.py +0 -0
  59. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/__init__.py +0 -0
  60. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/completion_create_params.py +0 -0
  61. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/completion_create_response.py +0 -0
  62. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/completion_get_params.py +0 -0
  63. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/completion_get_response.py +0 -0
  64. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/async_/chat/completion_list_response.py +0 -0
  65. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/chat/__init__.py +0 -0
  66. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/chat/completion_create_params.py +0 -0
  67. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/chat/completion_create_response.py +0 -0
  68. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/search_create_params.py +0 -0
  69. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/search_create_response.py +0 -0
  70. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/__init__.py +0 -0
  71. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/api_public_search_result.py +0 -0
  72. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/chat_message_input.py +0 -0
  73. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/chat_message_output.py +0 -0
  74. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/choice.py +0 -0
  75. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared/usage_info.py +0 -0
  76. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared_params/__init__.py +0 -0
  77. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared_params/api_public_search_result.py +0 -0
  78. {perplexityai-0.11.0 → perplexityai-0.12.1}/src/perplexity/types/shared_params/chat_message_input.py +0 -0
  79. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/__init__.py +0 -0
  80. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/__init__.py +0 -0
  81. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/async_/__init__.py +0 -0
  82. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/async_/chat/__init__.py +0 -0
  83. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/async_/chat/test_completions.py +0 -0
  84. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/chat/__init__.py +0 -0
  85. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/chat/test_completions.py +0 -0
  86. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/api_resources/test_search.py +0 -0
  87. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/conftest.py +0 -0
  88. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/sample_file.txt +0 -0
  89. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_client.py +0 -0
  90. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_deepcopy.py +0 -0
  91. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_extract_files.py +0 -0
  92. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_files.py +0 -0
  93. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_models.py +0 -0
  94. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_qs.py +0 -0
  95. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_required_args.py +0 -0
  96. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_response.py +0 -0
  97. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_streaming.py +0 -0
  98. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_transform.py +0 -0
  99. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_utils/test_datetime_parse.py +0 -0
  100. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_utils/test_proxy.py +0 -0
  101. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/test_utils/test_typing.py +0 -0
  102. {perplexityai-0.11.0 → perplexityai-0.12.1}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.12.1"
3
+ }
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.1 (2025-09-30)
4
+
5
+ Full Changelog: [v0.12.0...v0.12.1](https://github.com/perplexityai/perplexity-py/compare/v0.12.0...v0.12.1)
6
+
7
+ ## 0.12.0 (2025-09-26)
8
+
9
+ Full Changelog: [v0.11.0...v0.12.0](https://github.com/perplexityai/perplexity-py/compare/v0.11.0...v0.12.0)
10
+
11
+ ### Features
12
+
13
+ * **api:** add /chat/completions and /async/chat/completions ([945f7c2](https://github.com/perplexityai/perplexity-py/commit/945f7c27c80ca90f6c703590578a414351e0adb2))
14
+ * **api:** add /content endpoint ([7c08ab9](https://github.com/perplexityai/perplexity-py/commit/7c08ab9a1a728ddf8da3523b330e28c8f3f40cd4))
15
+ * **api:** change bearer_token to api_key ([af29515](https://github.com/perplexityai/perplexity-py/commit/af295151b4ff3dc44dc5768aa0e965a8f5984840))
16
+ * **api:** include /content endpoint ([46697bc](https://github.com/perplexityai/perplexity-py/commit/46697bc483a4647c47368820badcdea6753a1078))
17
+ * **api:** manual updates ([d0b1071](https://github.com/perplexityai/perplexity-py/commit/d0b1071f0a16cf589c8c7d58dd545f8455eb6878))
18
+ * **api:** manual updates ([7f38b2f](https://github.com/perplexityai/perplexity-py/commit/7f38b2f1eb750a6d5e435a5bfd376b62fa5a9594))
19
+ * **api:** manual updates ([8fbe318](https://github.com/perplexityai/perplexity-py/commit/8fbe318c5ed7df04335c2cd14de708cae5780623))
20
+ * **api:** update from perform -> create ([c88982f](https://github.com/perplexityai/perplexity-py/commit/c88982f6b0b3ae6060f0754e1cbb8aa3035e4054))
21
+ * **api:** update via SDK Studio ([5a26918](https://github.com/perplexityai/perplexity-py/commit/5a269186a185f62a94fbfc57e627f8820194dc23))
22
+
23
+
24
+ ### Chores
25
+
26
+ * do not install brew dependencies in ./scripts/bootstrap by default ([6642343](https://github.com/perplexityai/perplexity-py/commit/66423439ddc11f2db05dc47f71b362c37681a557))
27
+ * **internal:** update pydantic dependency ([cac84f2](https://github.com/perplexityai/perplexity-py/commit/cac84f25cd550ee57f8971d74231f63ba8d36905))
28
+ * remove custom code ([3270d55](https://github.com/perplexityai/perplexity-py/commit/3270d55b91143e4b9dbc118f39791d36444e0409))
29
+ * **types:** change optional parameter type from NotGiven to Omit ([3b0edc9](https://github.com/perplexityai/perplexity-py/commit/3b0edc968f37f3a4233d0a66333e526a23f5073e))
30
+ * update SDK settings ([bcb8f64](https://github.com/perplexityai/perplexity-py/commit/bcb8f64648137caf170f0cf4b9816a39780c9f9c))
31
+ * update SDK settings ([99e08d9](https://github.com/perplexityai/perplexity-py/commit/99e08d9fb37306acce60d1da281c98d082d34995))
32
+ * update SDK settings ([6de8ec2](https://github.com/perplexityai/perplexity-py/commit/6de8ec2ca199470e9f7b70a4f840a6aeef3b1104))
33
+
3
34
  ## 0.11.0 (2025-09-24)
4
35
 
5
36
  Full Changelog: [v0.10.0...v0.11.0](https://github.com/ppl-ai/perplexity-py/compare/v0.10.0...v0.11.0)
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
62
62
  To install via git:
63
63
 
64
64
  ```sh
65
- $ pip install git+ssh://git@github.com/ppl-ai/perplexity-py.git
65
+ $ pip install git+ssh://git@github.com/perplexityai/perplexity-py.git
66
66
  ```
67
67
 
68
68
  Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120
120
 
121
121
  ### Publish with a GitHub workflow
122
122
 
123
- You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/ppl-ai/perplexity-py/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123
+ You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/perplexityai/perplexity-py/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124
124
 
125
125
  ### Publish manually
126
126
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perplexityai
3
- Version: 0.11.0
3
+ Version: 0.12.1
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
 
@@ -76,27 +76,9 @@ for result in search.results:
76
76
  print(f"{result.title}: {result.url}")
77
77
  ```
78
78
 
79
- ## Content API
80
-
81
- Extract and process content from URLs:
82
-
83
- ```python
84
- from perplexity import Perplexity
85
-
86
- client = Perplexity()
87
-
88
- content = client.content.create(
89
- urls=["https://en.wikipedia.org/wiki/Perplexity_AI"]
90
- )
91
-
92
- for result in content.results:
93
- print(f"Title: {result.title}")
94
- print(f"Content: {result.content[:200]}...")
95
- ```
96
-
97
79
  ## Chat Completions
98
80
 
99
- The full API of this library can be found in [api.md](https://github.com/ppl-ai/perplexity-py/tree/main/api.md).
81
+ The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
100
82
 
101
83
  ```python
102
84
  import os
@@ -336,7 +318,7 @@ client.with_options(timeout=5.0).chat.completions.create(
336
318
 
337
319
  On timeout, an `APITimeoutError` is thrown.
338
320
 
339
- Note that requests that time out are [retried twice by default](https://github.com/ppl-ai/perplexity-py/tree/main/#retries).
321
+ Note that requests that time out are [retried twice by default](https://github.com/perplexityai/perplexity-py/tree/main/#retries).
340
322
 
341
323
  ## Advanced
342
324
 
@@ -385,9 +367,9 @@ completion = response.parse() # get the object that `chat.completions.create()`
385
367
  print(completion.id)
386
368
  ```
387
369
 
388
- These methods return an [`APIResponse`](https://github.com/ppl-ai/perplexity-py/tree/main/src/perplexity/_response.py) object.
370
+ These methods return an [`APIResponse`](https://github.com/perplexityai/perplexity-py/tree/main/src/perplexity/_response.py) object.
389
371
 
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.
372
+ 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
373
 
392
374
  #### `.with_streaming_response`
393
375
 
@@ -499,7 +481,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
499
481
 
500
482
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
501
483
 
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.
484
+ We are keen for your feedback; please open an [issue](https://www.github.com/perplexityai/perplexity-py/issues) with questions, bugs, or suggestions.
503
485
 
504
486
  ### Determining the installed version
505
487
 
@@ -518,4 +500,4 @@ Python 3.8 or higher.
518
500
 
519
501
  ## Contributing
520
502
 
521
- See [the contributing documentation](https://github.com/ppl-ai/perplexity-py/tree/main/./CONTRIBUTING.md).
503
+ See [the contributing documentation](https://github.com/perplexityai/perplexity-py/tree/main/./CONTRIBUTING.md).
@@ -41,24 +41,6 @@ for result in search.results:
41
41
  print(f"{result.title}: {result.url}")
42
42
  ```
43
43
 
44
- ## Content API
45
-
46
- Extract and process content from URLs:
47
-
48
- ```python
49
- from perplexity import Perplexity
50
-
51
- client = Perplexity()
52
-
53
- content = client.content.create(
54
- urls=["https://en.wikipedia.org/wiki/Perplexity_AI"]
55
- )
56
-
57
- for result in content.results:
58
- print(f"Title: {result.title}")
59
- print(f"Content: {result.content[:200]}...")
60
- ```
61
-
62
44
  ## Chat Completions
63
45
 
64
46
  The full API of this library can be found in [api.md](api.md).
@@ -350,9 +332,9 @@ completion = response.parse() # get the object that `chat.completions.create()`
350
332
  print(completion.id)
351
333
  ```
352
334
 
353
- These methods return an [`APIResponse`](https://github.com/ppl-ai/perplexity-py/tree/main/src/perplexity/_response.py) object.
335
+ These methods return an [`APIResponse`](https://github.com/perplexityai/perplexity-py/tree/main/src/perplexity/_response.py) object.
354
336
 
355
- 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.
337
+ 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.
356
338
 
357
339
  #### `.with_streaming_response`
358
340
 
@@ -464,7 +446,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
464
446
 
465
447
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
466
448
 
467
- We are keen for your feedback; please open an [issue](https://www.github.com/ppl-ai/perplexity-py/issues) with questions, bugs, or suggestions.
449
+ We are keen for your feedback; please open an [issue](https://www.github.com/perplexityai/perplexity-py/issues) with questions, bugs, or suggestions.
468
450
 
469
451
  ### Determining the installed version
470
452
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "perplexityai"
3
- version = "0.11.0"
3
+ version = "0.12.1"
4
4
  description = "The official Python library for the perplexity API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -35,8 +35,8 @@ classifiers = [
35
35
  ]
36
36
 
37
37
  [project.urls]
38
- Homepage = "https://github.com/ppl-ai/perplexity-py"
39
- Repository = "https://github.com/ppl-ai/perplexity-py"
38
+ Homepage = "https://github.com/perplexityai/perplexity-py"
39
+ Repository = "https://github.com/perplexityai/perplexity-py"
40
40
 
41
41
  [project.optional-dependencies]
42
42
  aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
@@ -124,7 +124,7 @@ path = "README.md"
124
124
  [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
125
125
  # replace relative links with absolute links
126
126
  pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
127
- replacement = '[\1](https://github.com/ppl-ai/perplexity-py/tree/main/\g<2>)'
127
+ replacement = '[\1](https://github.com/perplexityai/perplexity-py/tree/main/\g<2>)'
128
128
 
129
129
  [tool.pytest.ini_options]
130
130
  testpaths = ["tests"]
@@ -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.1" # 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,3 +0,0 @@
1
- {
2
- ".": "0.11.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes