perplexityai 0.17.0__tar.gz → 0.18.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.18.0/.release-please-manifest.json +3 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/CHANGELOG.md +16 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/PKG-INFO +4 -4
- {perplexityai-0.17.0 → perplexityai-0.18.0}/README.md +2 -2
- {perplexityai-0.17.0 → perplexityai-0.18.0}/pyproject.toml +2 -2
- {perplexityai-0.17.0 → perplexityai-0.18.0}/requirements-dev.lock +1 -1
- {perplexityai-0.17.0 → perplexityai-0.18.0}/requirements.lock +1 -1
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_constants.py +2 -2
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_version.py +1 -1
- perplexityai-0.17.0/.release-please-manifest.json +0 -3
- {perplexityai-0.17.0 → perplexityai-0.18.0}/.gitignore +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/CONTRIBUTING.md +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/LICENSE +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/SECURITY.md +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/api.md +12 -12
- {perplexityai-0.17.0 → perplexityai-0.18.0}/bin/check-release-environment +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/bin/publish-pypi +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/examples/.keep +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/noxfile.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/release-please-config.json +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_base_client.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_client.py +8 -8
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_compat.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_exceptions.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_files.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_models.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_qs.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_resource.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_streaming.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_types.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_compat.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_datetime_parse.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_logs.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_proxy.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_reflection.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_resources_proxy.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_streams.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_sync.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_transform.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_typing.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/_utils/_utils.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/lib/.keep +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/py.typed +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/__init__.py +6 -6
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/async_.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/chat/chat.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/chat/completions.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/chat/chat.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/chat/completions.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/search.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/completion_create_params.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/completion_create_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/completion_get_params.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/completion_get_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/async_/chat/completion_list_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/chat/completion_create_params.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/search_create_params.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/search_create_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/api_public_search_result.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/chat_message_input.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/chat_message_output.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/choice.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/usage_info.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared_params/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared_params/api_public_search_result.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared_params/chat_message_input.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/stream_chunk.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/async_/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/async_/chat/test_completions.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/chat/__init__.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/chat/test_completions.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/api_resources/test_search.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/conftest.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/sample_file.txt +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_client.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_deepcopy.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_extract_files.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_files.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_models.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_qs.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_required_args.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_response.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_streaming.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_transform.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_utils/test_proxy.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/test_utils/test_typing.py +0 -0
- {perplexityai-0.17.0 → perplexityai-0.18.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0 (2025-10-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.17.1...v0.18.0](https://github.com/perplexityai/perplexity-py/compare/v0.17.1...v0.18.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([7a08c95](https://github.com/perplexityai/perplexity-py/commit/7a08c95ea7f9a04004153aac6cfd78022a68fd11))
|
|
10
|
+
|
|
11
|
+
## 0.17.1 (2025-10-18)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.17.0...v0.17.1](https://github.com/perplexityai/perplexity-py/compare/v0.17.0...v0.17.1)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* bump `httpx-aiohttp` version to 0.1.9 ([c51305f](https://github.com/perplexityai/perplexity-py/commit/c51305fa20dc6109a5efcfcac1f78686234e6147))
|
|
18
|
+
|
|
3
19
|
## 0.17.0 (2025-10-16)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.16.1...v0.17.0](https://github.com/perplexityai/perplexity-py/compare/v0.16.1...v0.17.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perplexityai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.18.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
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
36
|
# Perplexity Python API library
|
|
@@ -331,7 +331,7 @@ client.with_options(max_retries=5).chat.completions.create(
|
|
|
331
331
|
|
|
332
332
|
### Timeouts
|
|
333
333
|
|
|
334
|
-
By default requests time out after
|
|
334
|
+
By default requests time out after 15 minutes. You can configure this with a `timeout` option,
|
|
335
335
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
|
336
336
|
|
|
337
337
|
```python
|
|
@@ -339,7 +339,7 @@ from perplexity import Perplexity
|
|
|
339
339
|
|
|
340
340
|
# Configure the default for all requests:
|
|
341
341
|
client = Perplexity(
|
|
342
|
-
# 20 seconds (default is
|
|
342
|
+
# 20 seconds (default is 15 minutes)
|
|
343
343
|
timeout=20.0,
|
|
344
344
|
)
|
|
345
345
|
|
|
@@ -296,7 +296,7 @@ client.with_options(max_retries=5).chat.completions.create(
|
|
|
296
296
|
|
|
297
297
|
### Timeouts
|
|
298
298
|
|
|
299
|
-
By default requests time out after
|
|
299
|
+
By default requests time out after 15 minutes. You can configure this with a `timeout` option,
|
|
300
300
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
|
301
301
|
|
|
302
302
|
```python
|
|
@@ -304,7 +304,7 @@ from perplexity import Perplexity
|
|
|
304
304
|
|
|
305
305
|
# Configure the default for all requests:
|
|
306
306
|
client = Perplexity(
|
|
307
|
-
# 20 seconds (default is
|
|
307
|
+
# 20 seconds (default is 15 minutes)
|
|
308
308
|
timeout=20.0,
|
|
309
309
|
)
|
|
310
310
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "perplexityai"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.18.0"
|
|
4
4
|
description = "The official Python library for the perplexity API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -39,7 +39,7 @@ Homepage = "https://github.com/perplexityai/perplexity-py"
|
|
|
39
39
|
Repository = "https://github.com/perplexityai/perplexity-py"
|
|
40
40
|
|
|
41
41
|
[project.optional-dependencies]
|
|
42
|
-
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.
|
|
42
|
+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
|
|
43
43
|
|
|
44
44
|
[tool.rye]
|
|
45
45
|
managed = true
|
|
@@ -5,8 +5,8 @@ import httpx
|
|
|
5
5
|
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
|
|
6
6
|
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
|
7
7
|
|
|
8
|
-
# default timeout is
|
|
9
|
-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=
|
|
8
|
+
# default timeout is 15 minutes
|
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=900, connect=5.0)
|
|
10
10
|
DEFAULT_MAX_RETRIES = 2
|
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -24,6 +24,18 @@ Methods:
|
|
|
24
24
|
|
|
25
25
|
- <code title="post /chat/completions">client.chat.completions.<a href="./src/perplexity/resources/chat/completions.py">create</a>(\*\*<a href="src/perplexity/types/chat/completion_create_params.py">params</a>) -> <a href="./src/perplexity/types/stream_chunk.py">StreamChunk</a></code>
|
|
26
26
|
|
|
27
|
+
# Search
|
|
28
|
+
|
|
29
|
+
Types:
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from perplexity.types import SearchCreateResponse
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Methods:
|
|
36
|
+
|
|
37
|
+
- <code title="post /search">client.search.<a href="./src/perplexity/resources/search.py">create</a>(\*\*<a href="src/perplexity/types/search_create_params.py">params</a>) -> <a href="./src/perplexity/types/search_create_response.py">SearchCreateResponse</a></code>
|
|
38
|
+
|
|
27
39
|
# Async
|
|
28
40
|
|
|
29
41
|
## Chat
|
|
@@ -45,15 +57,3 @@ Methods:
|
|
|
45
57
|
- <code title="post /async/chat/completions">client.async*.chat.completions.<a href="./src/perplexity/resources/async*/chat/completions.py">create</a>(\*\*<a href="src/perplexity/types/async_/chat/completion_create_params.py">params</a>) -> <a href="./src/perplexity/types/async_/chat/completion_create_response.py">CompletionCreateResponse</a></code>
|
|
46
58
|
- <code title="get /async/chat/completions">client.async*.chat.completions.<a href="./src/perplexity/resources/async*/chat/completions.py">list</a>() -> <a href="./src/perplexity/types/async_/chat/completion_list_response.py">CompletionListResponse</a></code>
|
|
47
59
|
- <code title="get /async/chat/completions/{api_request}">client.async*.chat.completions.<a href="./src/perplexity/resources/async*/chat/completions.py">get</a>(api*request, \*\*<a href="src/perplexity/types/async*/chat/completion*get_params.py">params</a>) -> <a href="./src/perplexity/types/async*/chat/completion_get_response.py">CompletionGetResponse</a></code>
|
|
48
|
-
|
|
49
|
-
# Search
|
|
50
|
-
|
|
51
|
-
Types:
|
|
52
|
-
|
|
53
|
-
```python
|
|
54
|
-
from perplexity.types import SearchCreateResponse
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Methods:
|
|
58
|
-
|
|
59
|
-
- <code title="post /search">client.search.<a href="./src/perplexity/resources/search.py">create</a>(\*\*<a href="src/perplexity/types/search_create_params.py">params</a>) -> <a href="./src/perplexity/types/search_create_response.py">SearchCreateResponse</a></code>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -46,8 +46,8 @@ __all__ = [
|
|
|
46
46
|
|
|
47
47
|
class Perplexity(SyncAPIClient):
|
|
48
48
|
chat: chat.ChatResource
|
|
49
|
-
async_: async_.AsyncResource
|
|
50
49
|
search: search.SearchResource
|
|
50
|
+
async_: async_.AsyncResource
|
|
51
51
|
with_raw_response: PerplexityWithRawResponse
|
|
52
52
|
with_streaming_response: PerplexityWithStreamedResponse
|
|
53
53
|
|
|
@@ -108,8 +108,8 @@ class Perplexity(SyncAPIClient):
|
|
|
108
108
|
self._default_stream_cls = Stream
|
|
109
109
|
|
|
110
110
|
self.chat = chat.ChatResource(self)
|
|
111
|
-
self.async_ = async_.AsyncResource(self)
|
|
112
111
|
self.search = search.SearchResource(self)
|
|
112
|
+
self.async_ = async_.AsyncResource(self)
|
|
113
113
|
self.with_raw_response = PerplexityWithRawResponse(self)
|
|
114
114
|
self.with_streaming_response = PerplexityWithStreamedResponse(self)
|
|
115
115
|
|
|
@@ -220,8 +220,8 @@ class Perplexity(SyncAPIClient):
|
|
|
220
220
|
|
|
221
221
|
class AsyncPerplexity(AsyncAPIClient):
|
|
222
222
|
chat: chat.AsyncChatResource
|
|
223
|
-
async_: async_.AsyncAsyncResource
|
|
224
223
|
search: search.AsyncSearchResource
|
|
224
|
+
async_: async_.AsyncAsyncResource
|
|
225
225
|
with_raw_response: AsyncPerplexityWithRawResponse
|
|
226
226
|
with_streaming_response: AsyncPerplexityWithStreamedResponse
|
|
227
227
|
|
|
@@ -282,8 +282,8 @@ class AsyncPerplexity(AsyncAPIClient):
|
|
|
282
282
|
self._default_stream_cls = AsyncStream
|
|
283
283
|
|
|
284
284
|
self.chat = chat.AsyncChatResource(self)
|
|
285
|
-
self.async_ = async_.AsyncAsyncResource(self)
|
|
286
285
|
self.search = search.AsyncSearchResource(self)
|
|
286
|
+
self.async_ = async_.AsyncAsyncResource(self)
|
|
287
287
|
self.with_raw_response = AsyncPerplexityWithRawResponse(self)
|
|
288
288
|
self.with_streaming_response = AsyncPerplexityWithStreamedResponse(self)
|
|
289
289
|
|
|
@@ -395,29 +395,29 @@ class AsyncPerplexity(AsyncAPIClient):
|
|
|
395
395
|
class PerplexityWithRawResponse:
|
|
396
396
|
def __init__(self, client: Perplexity) -> None:
|
|
397
397
|
self.chat = chat.ChatResourceWithRawResponse(client.chat)
|
|
398
|
-
self.async_ = async_.AsyncResourceWithRawResponse(client.async_)
|
|
399
398
|
self.search = search.SearchResourceWithRawResponse(client.search)
|
|
399
|
+
self.async_ = async_.AsyncResourceWithRawResponse(client.async_)
|
|
400
400
|
|
|
401
401
|
|
|
402
402
|
class AsyncPerplexityWithRawResponse:
|
|
403
403
|
def __init__(self, client: AsyncPerplexity) -> None:
|
|
404
404
|
self.chat = chat.AsyncChatResourceWithRawResponse(client.chat)
|
|
405
|
-
self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_)
|
|
406
405
|
self.search = search.AsyncSearchResourceWithRawResponse(client.search)
|
|
406
|
+
self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_)
|
|
407
407
|
|
|
408
408
|
|
|
409
409
|
class PerplexityWithStreamedResponse:
|
|
410
410
|
def __init__(self, client: Perplexity) -> None:
|
|
411
411
|
self.chat = chat.ChatResourceWithStreamingResponse(client.chat)
|
|
412
|
-
self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_)
|
|
413
412
|
self.search = search.SearchResourceWithStreamingResponse(client.search)
|
|
413
|
+
self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_)
|
|
414
414
|
|
|
415
415
|
|
|
416
416
|
class AsyncPerplexityWithStreamedResponse:
|
|
417
417
|
def __init__(self, client: AsyncPerplexity) -> None:
|
|
418
418
|
self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat)
|
|
419
|
-
self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_)
|
|
420
419
|
self.search = search.AsyncSearchResourceWithStreamingResponse(client.search)
|
|
420
|
+
self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_)
|
|
421
421
|
|
|
422
422
|
|
|
423
423
|
Client = Perplexity
|
|
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
|
|
@@ -32,16 +32,16 @@ __all__ = [
|
|
|
32
32
|
"AsyncChatResourceWithRawResponse",
|
|
33
33
|
"ChatResourceWithStreamingResponse",
|
|
34
34
|
"AsyncChatResourceWithStreamingResponse",
|
|
35
|
-
"AsyncResource",
|
|
36
|
-
"AsyncAsyncResource",
|
|
37
|
-
"AsyncResourceWithRawResponse",
|
|
38
|
-
"AsyncAsyncResourceWithRawResponse",
|
|
39
|
-
"AsyncResourceWithStreamingResponse",
|
|
40
|
-
"AsyncAsyncResourceWithStreamingResponse",
|
|
41
35
|
"SearchResource",
|
|
42
36
|
"AsyncSearchResource",
|
|
43
37
|
"SearchResourceWithRawResponse",
|
|
44
38
|
"AsyncSearchResourceWithRawResponse",
|
|
45
39
|
"SearchResourceWithStreamingResponse",
|
|
46
40
|
"AsyncSearchResourceWithStreamingResponse",
|
|
41
|
+
"AsyncResource",
|
|
42
|
+
"AsyncAsyncResource",
|
|
43
|
+
"AsyncResourceWithRawResponse",
|
|
44
|
+
"AsyncAsyncResourceWithRawResponse",
|
|
45
|
+
"AsyncResourceWithStreamingResponse",
|
|
46
|
+
"AsyncAsyncResourceWithStreamingResponse",
|
|
47
47
|
]
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/chat/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/resources/async_/chat/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
|
{perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/chat/completion_create_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/api_public_search_result.py
RENAMED
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.0}/src/perplexity/types/shared/chat_message_input.py
RENAMED
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.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.17.0 → perplexityai-0.18.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
|
|
File without changes
|
{perplexityai-0.17.0 → perplexityai-0.18.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
|