Skip to content

Commit 895976a

Browse files
chore: update OpenAPI spec and rebuild SDKs
1 parent 6e5778a commit 895976a

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
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/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)