perplexityai 0.11.0__tar.gz → 0.12.0__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.
- perplexityai-0.12.0/.release-please-manifest.json +3 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/CHANGELOG.md +27 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/CONTRIBUTING.md +2 -2
- {perplexityai-0.11.0 → perplexityai-0.12.0}/PKG-INFO +10 -10
- {perplexityai-0.11.0 → perplexityai-0.12.0}/README.md +3 -3
- {perplexityai-0.11.0 → perplexityai-0.12.0}/pyproject.toml +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_version.py +1 -1
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/async_.py +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/chat/chat.py +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/chat/completions.py +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/chat/chat.py +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/chat/completions.py +4 -4
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/search.py +4 -4
- perplexityai-0.11.0/.release-please-manifest.json +0 -3
- {perplexityai-0.11.0 → perplexityai-0.12.0}/.gitignore +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/LICENSE +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/SECURITY.md +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/api.md +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/bin/check-release-environment +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/bin/publish-pypi +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/examples/.keep +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/noxfile.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/release-please-config.json +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/requirements-dev.lock +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/requirements.lock +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_base_client.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_client.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_compat.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_constants.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_exceptions.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_files.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_models.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_qs.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_resource.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_streaming.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_types.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_compat.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_datetime_parse.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_logs.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_proxy.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_reflection.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_resources_proxy.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_streams.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_sync.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_transform.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_typing.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/_utils/_utils.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/lib/.keep +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/py.typed +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/completion_create_params.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/completion_create_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/completion_get_params.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/completion_get_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/async_/chat/completion_list_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/chat/completion_create_params.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/chat/completion_create_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/search_create_params.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/search_create_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/api_public_search_result.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/chat_message_input.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/chat_message_output.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/choice.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/usage_info.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared_params/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared_params/api_public_search_result.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared_params/chat_message_input.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/async_/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/async_/chat/test_completions.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/chat/__init__.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/chat/test_completions.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/test_search.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/conftest.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/sample_file.txt +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_client.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_deepcopy.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_extract_files.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_files.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_models.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_qs.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_required_args.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_response.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_streaming.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_transform.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_utils/test_proxy.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/test_utils/test_typing.py +0 -0
- {perplexityai-0.11.0 → perplexityai-0.12.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 (2025-09-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.11.0...v0.12.0](https://github.com/perplexityai/perplexity-py/compare/v0.11.0...v0.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add /chat/completions and /async/chat/completions ([945f7c2](https://github.com/perplexityai/perplexity-py/commit/945f7c27c80ca90f6c703590578a414351e0adb2))
|
|
10
|
+
* **api:** add /content endpoint ([7c08ab9](https://github.com/perplexityai/perplexity-py/commit/7c08ab9a1a728ddf8da3523b330e28c8f3f40cd4))
|
|
11
|
+
* **api:** change bearer_token to api_key ([af29515](https://github.com/perplexityai/perplexity-py/commit/af295151b4ff3dc44dc5768aa0e965a8f5984840))
|
|
12
|
+
* **api:** include /content endpoint ([46697bc](https://github.com/perplexityai/perplexity-py/commit/46697bc483a4647c47368820badcdea6753a1078))
|
|
13
|
+
* **api:** manual updates ([d0b1071](https://github.com/perplexityai/perplexity-py/commit/d0b1071f0a16cf589c8c7d58dd545f8455eb6878))
|
|
14
|
+
* **api:** manual updates ([7f38b2f](https://github.com/perplexityai/perplexity-py/commit/7f38b2f1eb750a6d5e435a5bfd376b62fa5a9594))
|
|
15
|
+
* **api:** manual updates ([8fbe318](https://github.com/perplexityai/perplexity-py/commit/8fbe318c5ed7df04335c2cd14de708cae5780623))
|
|
16
|
+
* **api:** update from perform -> create ([c88982f](https://github.com/perplexityai/perplexity-py/commit/c88982f6b0b3ae6060f0754e1cbb8aa3035e4054))
|
|
17
|
+
* **api:** update via SDK Studio ([5a26918](https://github.com/perplexityai/perplexity-py/commit/5a269186a185f62a94fbfc57e627f8820194dc23))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([6642343](https://github.com/perplexityai/perplexity-py/commit/66423439ddc11f2db05dc47f71b362c37681a557))
|
|
23
|
+
* **internal:** update pydantic dependency ([cac84f2](https://github.com/perplexityai/perplexity-py/commit/cac84f25cd550ee57f8971d74231f63ba8d36905))
|
|
24
|
+
* remove custom code ([3270d55](https://github.com/perplexityai/perplexity-py/commit/3270d55b91143e4b9dbc118f39791d36444e0409))
|
|
25
|
+
* **types:** change optional parameter type from NotGiven to Omit ([3b0edc9](https://github.com/perplexityai/perplexity-py/commit/3b0edc968f37f3a4233d0a66333e526a23f5073e))
|
|
26
|
+
* update SDK settings ([bcb8f64](https://github.com/perplexityai/perplexity-py/commit/bcb8f64648137caf170f0cf4b9816a39780c9f9c))
|
|
27
|
+
* update SDK settings ([99e08d9](https://github.com/perplexityai/perplexity-py/commit/99e08d9fb37306acce60d1da281c98d082d34995))
|
|
28
|
+
* update SDK settings ([6de8ec2](https://github.com/perplexityai/perplexity-py/commit/6de8ec2ca199470e9f7b70a4f840a6aeef3b1104))
|
|
29
|
+
|
|
3
30
|
## 0.11.0 (2025-09-24)
|
|
4
31
|
|
|
5
32
|
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/
|
|
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/
|
|
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.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: The official Python library for the perplexity API
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Repository, https://github.com/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
521
|
+
See [the contributing documentation](https://github.com/perplexityai/perplexity-py/tree/main/./CONTRIBUTING.md).
|
|
@@ -350,9 +350,9 @@ completion = response.parse() # get the object that `chat.completions.create()`
|
|
|
350
350
|
print(completion.id)
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
These methods return an [`APIResponse`](https://github.com/
|
|
353
|
+
These methods return an [`APIResponse`](https://github.com/perplexityai/perplexity-py/tree/main/src/perplexity/_response.py) object.
|
|
354
354
|
|
|
355
|
-
The async client returns an [`AsyncAPIResponse`](https://github.com/
|
|
355
|
+
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
356
|
|
|
357
357
|
#### `.with_streaming_response`
|
|
358
358
|
|
|
@@ -464,7 +464,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
|
|
|
464
464
|
|
|
465
465
|
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
|
466
466
|
|
|
467
|
-
We are keen for your feedback; please open an [issue](https://www.github.com/
|
|
467
|
+
We are keen for your feedback; please open an [issue](https://www.github.com/perplexityai/perplexity-py/issues) with questions, bugs, or suggestions.
|
|
468
468
|
|
|
469
469
|
### Determining the installed version
|
|
470
470
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "perplexityai"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.12.0"
|
|
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/
|
|
39
|
-
Repository = "https://github.com/
|
|
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/
|
|
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"]
|
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
64
|
+
For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
|
|
65
65
|
"""
|
|
66
66
|
return AsyncChatResourceWithStreamingResponse(self)
|
|
67
67
|
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/chat/completions.py
RENAMED
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
111
|
+
For more information, see https://www.github.com/perplexityai/perplexity-py#with_streaming_response
|
|
112
112
|
"""
|
|
113
113
|
return AsyncSearchResourceWithStreamingResponse(self)
|
|
114
114
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/resources/async_/chat/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/chat/completion_create_params.py
RENAMED
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/chat/completion_create_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/api_public_search_result.py
RENAMED
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/chat_message_input.py
RENAMED
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared/chat_message_output.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/src/perplexity/types/shared_params/chat_message_input.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.11.0 → perplexityai-0.12.0}/tests/api_resources/async_/chat/test_completions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|