Skip to content

Commit 6c510ea

Browse files
feat(api): manual updates
1 parent db64439 commit 6c510ea

File tree

15 files changed

+135
-34
lines changed

15 files changed

+135
-34
lines changed

.stats.yml

Lines changed: 2 additions & 2 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-aba0c21c569842e93e17b69cae9cee58d389fce9c2482f4d251fd8727db05679.yml
3-
openapi_spec_hash: 3d01b1c1425f7d43a8acf8b99bb9b321
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-51a3b755ae8040a6baeff490b3226a94c02a71aca6c4754dd365d7d0de8e399d.yml
3+
openapi_spec_hash: 03d28237de381a5b914ef738b3587bb5
44
config_hash: 0be7520657a7a0fb6b5a839e716fe30c

src/perplexity/resources/async_/chat/completions.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ def create(
5858
timeout: float | httpx.Timeout | None | NotGiven = not_given,
5959
) -> CompletionCreateResponse:
6060
"""
61-
FastAPI wrapper around async chat completions
62-
63-
This endpoint creates an asynchronous chat completion job and returns a job ID
64-
that can be used to poll for results.
61+
Submit an asynchronous chat completion request.
6562
6663
Args:
6764
extra_headers: Send extra headers
@@ -97,7 +94,7 @@ def list(
9794
extra_body: Body | None = None,
9895
timeout: float | httpx.Timeout | None | NotGiven = not_given,
9996
) -> CompletionListResponse:
100-
"""list all async chat completion requests for a given user."""
97+
"""Retrieve a list of all asynchronous chat completion requests for a given user."""
10198
return self._get(
10299
"/async/chat/completions",
103100
options=make_request_options(
@@ -113,6 +110,7 @@ def get(
113110
local_mode: bool | Omit = omit,
114111
x_client_env: str | Omit = omit,
115112
x_client_name: str | Omit = omit,
113+
x_created_at_epoch_seconds: str | Omit = omit,
116114
x_request_time: str | Omit = omit,
117115
x_usage_tier: str | Omit = omit,
118116
x_user_id: str | Omit = omit,
@@ -124,7 +122,7 @@ def get(
124122
timeout: float | httpx.Timeout | None | NotGiven = not_given,
125123
) -> CompletionGetResponse:
126124
"""
127-
get the response for a given async chat completion request.
125+
Retrieve the response for a given asynchronous chat completion request.
128126
129127
Args:
130128
extra_headers: Send extra headers
@@ -142,6 +140,7 @@ def get(
142140
{
143141
"x-client-env": x_client_env,
144142
"x-client-name": x_client_name,
143+
"x-created-at-epoch-seconds": x_created_at_epoch_seconds,
145144
"x-request-time": x_request_time,
146145
"x-usage-tier": x_usage_tier,
147146
"x-user-id": x_user_id,
@@ -195,10 +194,7 @@ async def create(
195194
timeout: float | httpx.Timeout | None | NotGiven = not_given,
196195
) -> CompletionCreateResponse:
197196
"""
198-
FastAPI wrapper around async chat completions
199-
200-
This endpoint creates an asynchronous chat completion job and returns a job ID
201-
that can be used to poll for results.
197+
Submit an asynchronous chat completion request.
202198
203199
Args:
204200
extra_headers: Send extra headers
@@ -234,7 +230,7 @@ async def list(
234230
extra_body: Body | None = None,
235231
timeout: float | httpx.Timeout | None | NotGiven = not_given,
236232
) -> CompletionListResponse:
237-
"""list all async chat completion requests for a given user."""
233+
"""Retrieve a list of all asynchronous chat completion requests for a given user."""
238234
return await self._get(
239235
"/async/chat/completions",
240236
options=make_request_options(
@@ -250,6 +246,7 @@ async def get(
250246
local_mode: bool | Omit = omit,
251247
x_client_env: str | Omit = omit,
252248
x_client_name: str | Omit = omit,
249+
x_created_at_epoch_seconds: str | Omit = omit,
253250
x_request_time: str | Omit = omit,
254251
x_usage_tier: str | Omit = omit,
255252
x_user_id: str | Omit = omit,
@@ -261,7 +258,7 @@ async def get(
261258
timeout: float | httpx.Timeout | None | NotGiven = not_given,
262259
) -> CompletionGetResponse:
263260
"""
264-
get the response for a given async chat completion request.
261+
Retrieve the response for a given asynchronous chat completion request.
265262
266263
Args:
267264
extra_headers: Send extra headers
@@ -279,6 +276,7 @@ async def get(
279276
{
280277
"x-client-env": x_client_env,
281278
"x-client-name": x_client_name,
279+
"x-created-at-epoch-seconds": x_created_at_epoch_seconds,
282280
"x-request-time": x_request_time,
283281
"x-usage-tier": x_usage_tier,
284282
"x-user-id": x_user_id,

0 commit comments

Comments
 (0)