Skip to content

Commit 04731d3

Browse files
chore: update OpenAPI spec and rebuild SDKs
1 parent 6e5778a commit 04731d3

File tree

10 files changed

+27
-26
lines changed

10 files changed

+27
-26
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: 36
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-729e21274ba5899bc422e10f9bc19fea7279c9166216480fefa3f3e73be5f3b4.yml
3-
openapi_spec_hash: bc7c6df73c0563285573965ab248c01b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-8b68f03c8602e25ede74e66221e04bb17ac1f3170b8de49b8311fbe492636245.yml
3+
openapi_spec_hash: 81a7c6f32c6d77c1f329ca5a3c700a7a
44
config_hash: 407acf62c906ee301314f2d23cdb58b1

src/replicate/resources/deployments/predictions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def create(
5353
stream: bool | Omit = omit,
5454
webhook: str | Omit = omit,
5555
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
56-
cancel_after: str | Omit = omit,
5756
prefer: str | Omit = omit,
57+
replicate_max_lifetime: str | Omit = omit,
5858
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5959
# The extra values given here take precedence over values defined on the client or passed to this method.
6060
extra_headers: Headers | None = None,
@@ -166,8 +166,8 @@ def create(
166166
extra_headers = {
167167
**strip_not_given(
168168
{
169-
"Cancel-After": cancel_after,
170169
"Prefer": prefer,
170+
"Replicate-Max-Lifetime": replicate_max_lifetime,
171171
}
172172
),
173173
**(extra_headers or {}),
@@ -219,8 +219,8 @@ async def create(
219219
stream: bool | Omit = omit,
220220
webhook: str | Omit = omit,
221221
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
222-
cancel_after: str | Omit = omit,
223222
prefer: str | Omit = omit,
223+
replicate_max_lifetime: str | Omit = omit,
224224
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
225225
# The extra values given here take precedence over values defined on the client or passed to this method.
226226
extra_headers: Headers | None = None,
@@ -332,8 +332,8 @@ async def create(
332332
extra_headers = {
333333
**strip_not_given(
334334
{
335-
"Cancel-After": cancel_after,
336335
"Prefer": prefer,
336+
"Replicate-Max-Lifetime": replicate_max_lifetime,
337337
}
338338
),
339339
**(extra_headers or {}),

src/replicate/resources/models/predictions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def create(
5555
stream: bool | Omit = omit,
5656
webhook: str | Omit = omit,
5757
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
58-
cancel_after: str | Omit = omit,
5958
prefer: str | Omit = omit,
6059
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
60+
replicate_max_lifetime: str | Omit = omit,
6161
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6262
# The extra values given here take precedence over values defined on the client or passed to this method.
6363
extra_headers: Headers | None = None,
@@ -173,8 +173,8 @@ def create(
173173
extra_headers = {
174174
**strip_not_given(
175175
{
176-
"Cancel-After": cancel_after,
177176
"Prefer": prefer,
177+
"Replicate-Max-Lifetime": replicate_max_lifetime,
178178
}
179179
),
180180
**(extra_headers or {}),
@@ -226,9 +226,9 @@ async def create(
226226
stream: bool | Omit = omit,
227227
webhook: str | Omit = omit,
228228
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
229-
cancel_after: str | Omit = omit,
230229
prefer: str | Omit = omit,
231230
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
231+
replicate_max_lifetime: str | Omit = omit,
232232
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
233233
# The extra values given here take precedence over values defined on the client or passed to this method.
234234
extra_headers: Headers | None = None,
@@ -344,8 +344,8 @@ async def create(
344344
extra_headers = {
345345
**strip_not_given(
346346
{
347-
"Cancel-After": cancel_after,
348347
"Prefer": prefer,
348+
"Replicate-Max-Lifetime": replicate_max_lifetime,
349349
}
350350
),
351351
**(extra_headers or {}),

src/replicate/resources/predictions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ def create(
6666
stream: bool | Omit = omit,
6767
webhook: str | Omit = omit,
6868
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
69-
cancel_after: str | Omit = omit,
7069
prefer: str | Omit = omit,
70+
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
71+
replicate_max_lifetime: str | Omit = omit,
7172
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7273
# The extra values given here take precedence over values defined on the client or passed to this method.
7374
extra_headers: Headers | None = None,
@@ -189,8 +190,8 @@ def create(
189190
extra_headers = {
190191
**strip_not_given(
191192
{
192-
"Cancel-After": cancel_after,
193193
"Prefer": prefer,
194+
"Replicate-Max-Lifetime": replicate_max_lifetime,
194195
}
195196
),
196197
**(extra_headers or {}),
@@ -527,9 +528,9 @@ async def create(
527528
stream: bool | Omit = omit,
528529
webhook: str | Omit = omit,
529530
webhook_events_filter: List[Literal["start", "output", "logs", "completed"]] | Omit = omit,
530-
cancel_after: str | Omit = omit,
531531
prefer: str | Omit = omit,
532532
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
533+
replicate_max_lifetime: str | Omit = omit,
533534
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
534535
# The extra values given here take precedence over values defined on the client or passed to this method.
535536
extra_headers: Headers | None = None,
@@ -651,8 +652,8 @@ async def create(
651652
extra_headers = {
652653
**strip_not_given(
653654
{
654-
"Cancel-After": cancel_after,
655655
"Prefer": prefer,
656+
"Replicate-Max-Lifetime": replicate_max_lifetime,
656657
}
657658
),
658659
**(extra_headers or {}),

src/replicate/types/deployments/prediction_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ class PredictionCreateParams(TypedDict, total=False):
9393
sent regardless of throttling.
9494
"""
9595

96-
cancel_after: Annotated[str, PropertyInfo(alias="Cancel-After")]
97-
9896
prefer: Annotated[str, PropertyInfo(alias="Prefer")]
97+
98+
replicate_max_lifetime: Annotated[str, PropertyInfo(alias="Replicate-Max-Lifetime")]

src/replicate/types/models/prediction_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ class PredictionCreateParams(TypedDict, total=False):
9393
sent regardless of throttling.
9494
"""
9595

96-
cancel_after: Annotated[str, PropertyInfo(alias="Cancel-After")]
97-
9896
prefer: Annotated[str, PropertyInfo(alias="Prefer")]
97+
98+
replicate_max_lifetime: Annotated[str, PropertyInfo(alias="Replicate-Max-Lifetime")]

src/replicate/types/prediction_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class PredictionCreateParamsWithoutVersion(TypedDict, total=False):
9090
sent regardless of throttling.
9191
"""
9292

93-
cancel_after: Annotated[str, PropertyInfo(alias="Cancel-After")]
94-
9593
prefer: Annotated[str, PropertyInfo(alias="Prefer")]
9694

95+
replicate_max_lifetime: Annotated[str, PropertyInfo(alias="Replicate-Max-Lifetime")]
96+
9797

9898
class PredictionCreateParams(PredictionCreateParamsWithoutVersion):
9999
version: Required[str]

tests/api_resources/deployments/test_predictions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
4343
stream=True,
4444
webhook="https://example.com/my-webhook-handler",
4545
webhook_events_filter=["start", "completed"],
46-
cancel_after="5m",
4746
prefer="wait=5",
47+
replicate_max_lifetime="5m",
4848
)
4949
assert_matches_type(Prediction, prediction, path=["response"])
5050

@@ -139,8 +139,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
139139
stream=True,
140140
webhook="https://example.com/my-webhook-handler",
141141
webhook_events_filter=["start", "completed"],
142-
cancel_after="5m",
143142
prefer="wait=5",
143+
replicate_max_lifetime="5m",
144144
)
145145
assert_matches_type(Prediction, prediction, path=["response"])
146146

tests/api_resources/models/test_predictions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
4343
stream=True,
4444
webhook="https://example.com/my-webhook-handler",
4545
webhook_events_filter=["start", "completed"],
46-
cancel_after="5m",
4746
prefer="wait=5",
47+
replicate_max_lifetime="5m",
4848
)
4949
assert_matches_type(Prediction, prediction, path=["response"])
5050

@@ -139,8 +139,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
139139
stream=True,
140140
webhook="https://example.com/my-webhook-handler",
141141
webhook_events_filter=["start", "completed"],
142-
cancel_after="5m",
143142
prefer="wait=5",
143+
replicate_max_lifetime="5m",
144144
)
145145
assert_matches_type(Prediction, prediction, path=["response"])
146146

tests/api_resources/test_predictions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
3737
stream=True,
3838
webhook="https://example.com/my-webhook-handler",
3939
webhook_events_filter=["start", "completed"],
40-
cancel_after="5m",
4140
prefer="wait=5",
41+
replicate_max_lifetime="5m",
4242
)
4343
assert_matches_type(Prediction, prediction, path=["response"])
4444

@@ -215,8 +215,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
215215
stream=True,
216216
webhook="https://example.com/my-webhook-handler",
217217
webhook_events_filter=["start", "completed"],
218-
cancel_after="5m",
219218
prefer="wait=5",
219+
replicate_max_lifetime="5m",
220220
)
221221
assert_matches_type(Prediction, prediction, path=["response"])
222222

0 commit comments

Comments
 (0)