Skip to content

Commit cbb39af

Browse files
authored
Merge pull request #16 from perplexityai/release-please--branches--main--changes--next
2 parents 1c7965d + 9f934b4 commit cbb39af

File tree

10 files changed

+44
-36
lines changed

10 files changed

+44
-36
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.17.1"
2+
".": "0.18.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-cf9f981e30f8c9739f337a8b20436cebdbf35fffc70d6db5a09ec5a3b68cddef.yml
3-
openapi_spec_hash: d0cdcfdde0a0046e6451305475060748
4-
config_hash: 29552caca3e91432ed1a14f4a38487cc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-335f0ceddae39ba77e5abf8b2b72691a43174b25c2ec897cd7779db8d1524820.yml
3+
openapi_spec_hash: e34fc7a3c97b61c7aded4df4774f298e
4+
config_hash: 4e2c5b7ad4caa07a2ac1af091ecf6c9c

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

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+
311
## 0.17.1 (2025-10-18)
412

513
Full Changelog: [v0.17.0...v0.17.1](https://github.com/perplexityai/perplexity-py/compare/v0.17.0...v0.17.1)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,15 @@ client.with_options(max_retries=5).chat.completions.create(
296296

297297
### Timeouts
298298

299-
By default requests time out after 1 minute. You can configure this with a `timeout` option,
299+
By default requests time out after 15 minutes. You can configure this with a `timeout` option,
300300
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
301301

302302
```python
303303
from perplexity import Perplexity
304304

305305
# Configure the default for all requests:
306306
client = Perplexity(
307-
# 20 seconds (default is 1 minute)
307+
# 20 seconds (default is 15 minutes)
308308
timeout=20.0,
309309
)
310310

api.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ Methods:
2424

2525
- <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>
2626

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+
2739
# Async
2840

2941
## Chat
@@ -45,15 +57,3 @@ Methods:
4557
- <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>
4658
- <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>
4759
- <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>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "perplexityai"
3-
version = "0.17.1"
3+
version = "0.18.0"
44
description = "The official Python library for the perplexity API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/perplexity/_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
class Perplexity(SyncAPIClient):
4848
chat: chat.ChatResource
49-
async_: async_.AsyncResource
5049
search: search.SearchResource
50+
async_: async_.AsyncResource
5151
with_raw_response: PerplexityWithRawResponse
5252
with_streaming_response: PerplexityWithStreamedResponse
5353

@@ -108,8 +108,8 @@ def __init__(
108108
self._default_stream_cls = Stream
109109

110110
self.chat = chat.ChatResource(self)
111-
self.async_ = async_.AsyncResource(self)
112111
self.search = search.SearchResource(self)
112+
self.async_ = async_.AsyncResource(self)
113113
self.with_raw_response = PerplexityWithRawResponse(self)
114114
self.with_streaming_response = PerplexityWithStreamedResponse(self)
115115

@@ -220,8 +220,8 @@ def _make_status_error(
220220

221221
class AsyncPerplexity(AsyncAPIClient):
222222
chat: chat.AsyncChatResource
223-
async_: async_.AsyncAsyncResource
224223
search: search.AsyncSearchResource
224+
async_: async_.AsyncAsyncResource
225225
with_raw_response: AsyncPerplexityWithRawResponse
226226
with_streaming_response: AsyncPerplexityWithStreamedResponse
227227

@@ -282,8 +282,8 @@ def __init__(
282282
self._default_stream_cls = AsyncStream
283283

284284
self.chat = chat.AsyncChatResource(self)
285-
self.async_ = async_.AsyncAsyncResource(self)
286285
self.search = search.AsyncSearchResource(self)
286+
self.async_ = async_.AsyncAsyncResource(self)
287287
self.with_raw_response = AsyncPerplexityWithRawResponse(self)
288288
self.with_streaming_response = AsyncPerplexityWithStreamedResponse(self)
289289

@@ -395,29 +395,29 @@ def _make_status_error(
395395
class PerplexityWithRawResponse:
396396
def __init__(self, client: Perplexity) -> None:
397397
self.chat = chat.ChatResourceWithRawResponse(client.chat)
398-
self.async_ = async_.AsyncResourceWithRawResponse(client.async_)
399398
self.search = search.SearchResourceWithRawResponse(client.search)
399+
self.async_ = async_.AsyncResourceWithRawResponse(client.async_)
400400

401401

402402
class AsyncPerplexityWithRawResponse:
403403
def __init__(self, client: AsyncPerplexity) -> None:
404404
self.chat = chat.AsyncChatResourceWithRawResponse(client.chat)
405-
self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_)
406405
self.search = search.AsyncSearchResourceWithRawResponse(client.search)
406+
self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_)
407407

408408

409409
class PerplexityWithStreamedResponse:
410410
def __init__(self, client: Perplexity) -> None:
411411
self.chat = chat.ChatResourceWithStreamingResponse(client.chat)
412-
self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_)
413412
self.search = search.SearchResourceWithStreamingResponse(client.search)
413+
self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_)
414414

415415

416416
class AsyncPerplexityWithStreamedResponse:
417417
def __init__(self, client: AsyncPerplexity) -> None:
418418
self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat)
419-
self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_)
420419
self.search = search.AsyncSearchResourceWithStreamingResponse(client.search)
420+
self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_)
421421

422422

423423
Client = Perplexity

src/perplexity/_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
66
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
77

8-
# default timeout is 1 minute
9-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
8+
# default timeout is 15 minutes
9+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=900, connect=5.0)
1010
DEFAULT_MAX_RETRIES = 2
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

src/perplexity/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "perplexity"
4-
__version__ = "0.17.1" # x-release-please-version
4+
__version__ = "0.18.0" # x-release-please-version

src/perplexity/resources/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
"AsyncChatResourceWithRawResponse",
3333
"ChatResourceWithStreamingResponse",
3434
"AsyncChatResourceWithStreamingResponse",
35-
"AsyncResource",
36-
"AsyncAsyncResource",
37-
"AsyncResourceWithRawResponse",
38-
"AsyncAsyncResourceWithRawResponse",
39-
"AsyncResourceWithStreamingResponse",
40-
"AsyncAsyncResourceWithStreamingResponse",
4135
"SearchResource",
4236
"AsyncSearchResource",
4337
"SearchResourceWithRawResponse",
4438
"AsyncSearchResourceWithRawResponse",
4539
"SearchResourceWithStreamingResponse",
4640
"AsyncSearchResourceWithStreamingResponse",
41+
"AsyncResource",
42+
"AsyncAsyncResource",
43+
"AsyncResourceWithRawResponse",
44+
"AsyncAsyncResourceWithRawResponse",
45+
"AsyncResourceWithStreamingResponse",
46+
"AsyncAsyncResourceWithStreamingResponse",
4747
]

0 commit comments

Comments
 (0)