Skip to content

Commit 914202d

Browse files
authored
Merge pull request #46 from replicate/release-please--branches--main--changes--next
release: 2.0.0-alpha.17
2 parents c9bad8e + c0d1cf0 commit 914202d

19 files changed

+267
-266
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-
".": "2.0.0-alpha.16"
2+
".": "2.0.0-alpha.17"
33
}

CHANGELOG.md

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

3+
## 2.0.0-alpha.17 (2025-08-12)
4+
5+
Full Changelog: [v2.0.0-alpha.16...v2.0.0-alpha.17](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.16...v2.0.0-alpha.17)
6+
7+
### Chores
8+
9+
* **internal:** codegen related update ([ea920d5](https://github.com/replicate/replicate-python-stainless/commit/ea920d54977d46705b6dcf449e2fcbe7a9af76c8))
10+
* **internal:** update comment in script ([8e30c35](https://github.com/replicate/replicate-python-stainless/commit/8e30c35f1a5935b9a69046f1e971a3808c4e28b8))
11+
312
## 2.0.0-alpha.16 (2025-08-09)
413

514
Full Changelog: [v2.0.0-alpha.15...v2.0.0-alpha.16](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.15...v2.0.0-alpha.16)

pyproject.toml

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

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the prism command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
4747
echo
4848

4949
exit 1

src/replicate/_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__ = "replicate"
4-
__version__ = "2.0.0-alpha.16" # x-release-please-version
4+
__version__ = "2.0.0-alpha.17" # x-release-please-version

tests/api_resources/deployments/test_predictions.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestPredictions:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_create(self, client: Replicate) -> None:
2323
prediction = client.deployments.predictions.create(
@@ -30,7 +30,7 @@ def test_method_create(self, client: Replicate) -> None:
3030
)
3131
assert_matches_type(Prediction, prediction, path=["response"])
3232

33-
@pytest.mark.skip()
33+
@pytest.mark.skip(reason="Prism tests are disabled")
3434
@parametrize
3535
def test_method_create_with_all_params(self, client: Replicate) -> None:
3636
prediction = client.deployments.predictions.create(
@@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
4747
)
4848
assert_matches_type(Prediction, prediction, path=["response"])
4949

50-
@pytest.mark.skip()
50+
@pytest.mark.skip(reason="Prism tests are disabled")
5151
@parametrize
5252
def test_raw_response_create(self, client: Replicate) -> None:
5353
response = client.deployments.predictions.with_raw_response.create(
@@ -64,7 +64,7 @@ def test_raw_response_create(self, client: Replicate) -> None:
6464
prediction = response.parse()
6565
assert_matches_type(Prediction, prediction, path=["response"])
6666

67-
@pytest.mark.skip()
67+
@pytest.mark.skip(reason="Prism tests are disabled")
6868
@parametrize
6969
def test_streaming_response_create(self, client: Replicate) -> None:
7070
with client.deployments.predictions.with_streaming_response.create(
@@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: Replicate) -> None:
8383

8484
assert cast(Any, response.is_closed) is True
8585

86-
@pytest.mark.skip()
86+
@pytest.mark.skip(reason="Prism tests are disabled")
8787
@parametrize
8888
def test_path_params_create(self, client: Replicate) -> None:
8989
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"):
@@ -112,7 +112,7 @@ class TestAsyncPredictions:
112112
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
113113
)
114114

115-
@pytest.mark.skip()
115+
@pytest.mark.skip(reason="Prism tests are disabled")
116116
@parametrize
117117
async def test_method_create(self, async_client: AsyncReplicate) -> None:
118118
prediction = await async_client.deployments.predictions.create(
@@ -125,7 +125,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None:
125125
)
126126
assert_matches_type(Prediction, prediction, path=["response"])
127127

128-
@pytest.mark.skip()
128+
@pytest.mark.skip(reason="Prism tests are disabled")
129129
@parametrize
130130
async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None:
131131
prediction = await async_client.deployments.predictions.create(
@@ -142,7 +142,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
142142
)
143143
assert_matches_type(Prediction, prediction, path=["response"])
144144

145-
@pytest.mark.skip()
145+
@pytest.mark.skip(reason="Prism tests are disabled")
146146
@parametrize
147147
async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
148148
response = await async_client.deployments.predictions.with_raw_response.create(
@@ -159,7 +159,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
159159
prediction = await response.parse()
160160
assert_matches_type(Prediction, prediction, path=["response"])
161161

162-
@pytest.mark.skip()
162+
@pytest.mark.skip(reason="Prism tests are disabled")
163163
@parametrize
164164
async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None:
165165
async with async_client.deployments.predictions.with_streaming_response.create(
@@ -178,7 +178,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) ->
178178

179179
assert cast(Any, response.is_closed) is True
180180

181-
@pytest.mark.skip()
181+
@pytest.mark.skip(reason="Prism tests are disabled")
182182
@parametrize
183183
async def test_path_params_create(self, async_client: AsyncReplicate) -> None:
184184
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"):

tests/api_resources/models/test_examples.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class TestExamples:
1919
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2020

21-
@pytest.mark.skip()
21+
@pytest.mark.skip(reason="Prism tests are disabled")
2222
@parametrize
2323
def test_method_list(self, client: Replicate) -> None:
2424
example = client.models.examples.list(
@@ -27,7 +27,7 @@ def test_method_list(self, client: Replicate) -> None:
2727
)
2828
assert_matches_type(SyncCursorURLPage[Prediction], example, path=["response"])
2929

30-
@pytest.mark.skip()
30+
@pytest.mark.skip(reason="Prism tests are disabled")
3131
@parametrize
3232
def test_raw_response_list(self, client: Replicate) -> None:
3333
response = client.models.examples.with_raw_response.list(
@@ -40,7 +40,7 @@ def test_raw_response_list(self, client: Replicate) -> None:
4040
example = response.parse()
4141
assert_matches_type(SyncCursorURLPage[Prediction], example, path=["response"])
4242

43-
@pytest.mark.skip()
43+
@pytest.mark.skip(reason="Prism tests are disabled")
4444
@parametrize
4545
def test_streaming_response_list(self, client: Replicate) -> None:
4646
with client.models.examples.with_streaming_response.list(
@@ -55,7 +55,7 @@ def test_streaming_response_list(self, client: Replicate) -> None:
5555

5656
assert cast(Any, response.is_closed) is True
5757

58-
@pytest.mark.skip()
58+
@pytest.mark.skip(reason="Prism tests are disabled")
5959
@parametrize
6060
def test_path_params_list(self, client: Replicate) -> None:
6161
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):
@@ -76,7 +76,7 @@ class TestAsyncExamples:
7676
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7777
)
7878

79-
@pytest.mark.skip()
79+
@pytest.mark.skip(reason="Prism tests are disabled")
8080
@parametrize
8181
async def test_method_list(self, async_client: AsyncReplicate) -> None:
8282
example = await async_client.models.examples.list(
@@ -85,7 +85,7 @@ async def test_method_list(self, async_client: AsyncReplicate) -> None:
8585
)
8686
assert_matches_type(AsyncCursorURLPage[Prediction], example, path=["response"])
8787

88-
@pytest.mark.skip()
88+
@pytest.mark.skip(reason="Prism tests are disabled")
8989
@parametrize
9090
async def test_raw_response_list(self, async_client: AsyncReplicate) -> None:
9191
response = await async_client.models.examples.with_raw_response.list(
@@ -98,7 +98,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None:
9898
example = await response.parse()
9999
assert_matches_type(AsyncCursorURLPage[Prediction], example, path=["response"])
100100

101-
@pytest.mark.skip()
101+
@pytest.mark.skip(reason="Prism tests are disabled")
102102
@parametrize
103103
async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None:
104104
async with async_client.models.examples.with_streaming_response.list(
@@ -113,7 +113,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No
113113

114114
assert cast(Any, response.is_closed) is True
115115

116-
@pytest.mark.skip()
116+
@pytest.mark.skip(reason="Prism tests are disabled")
117117
@parametrize
118118
async def test_path_params_list(self, async_client: AsyncReplicate) -> None:
119119
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):

tests/api_resources/models/test_predictions.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestPredictions:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_create(self, client: Replicate) -> None:
2323
prediction = client.models.predictions.create(
@@ -30,7 +30,7 @@ def test_method_create(self, client: Replicate) -> None:
3030
)
3131
assert_matches_type(Prediction, prediction, path=["response"])
3232

33-
@pytest.mark.skip()
33+
@pytest.mark.skip(reason="Prism tests are disabled")
3434
@parametrize
3535
def test_method_create_with_all_params(self, client: Replicate) -> None:
3636
prediction = client.models.predictions.create(
@@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
4747
)
4848
assert_matches_type(Prediction, prediction, path=["response"])
4949

50-
@pytest.mark.skip()
50+
@pytest.mark.skip(reason="Prism tests are disabled")
5151
@parametrize
5252
def test_raw_response_create(self, client: Replicate) -> None:
5353
response = client.models.predictions.with_raw_response.create(
@@ -64,7 +64,7 @@ def test_raw_response_create(self, client: Replicate) -> None:
6464
prediction = response.parse()
6565
assert_matches_type(Prediction, prediction, path=["response"])
6666

67-
@pytest.mark.skip()
67+
@pytest.mark.skip(reason="Prism tests are disabled")
6868
@parametrize
6969
def test_streaming_response_create(self, client: Replicate) -> None:
7070
with client.models.predictions.with_streaming_response.create(
@@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: Replicate) -> None:
8383

8484
assert cast(Any, response.is_closed) is True
8585

86-
@pytest.mark.skip()
86+
@pytest.mark.skip(reason="Prism tests are disabled")
8787
@parametrize
8888
def test_path_params_create(self, client: Replicate) -> None:
8989
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):
@@ -112,7 +112,7 @@ class TestAsyncPredictions:
112112
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
113113
)
114114

115-
@pytest.mark.skip()
115+
@pytest.mark.skip(reason="Prism tests are disabled")
116116
@parametrize
117117
async def test_method_create(self, async_client: AsyncReplicate) -> None:
118118
prediction = await async_client.models.predictions.create(
@@ -125,7 +125,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None:
125125
)
126126
assert_matches_type(Prediction, prediction, path=["response"])
127127

128-
@pytest.mark.skip()
128+
@pytest.mark.skip(reason="Prism tests are disabled")
129129
@parametrize
130130
async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None:
131131
prediction = await async_client.models.predictions.create(
@@ -142,7 +142,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
142142
)
143143
assert_matches_type(Prediction, prediction, path=["response"])
144144

145-
@pytest.mark.skip()
145+
@pytest.mark.skip(reason="Prism tests are disabled")
146146
@parametrize
147147
async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
148148
response = await async_client.models.predictions.with_raw_response.create(
@@ -159,7 +159,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
159159
prediction = await response.parse()
160160
assert_matches_type(Prediction, prediction, path=["response"])
161161

162-
@pytest.mark.skip()
162+
@pytest.mark.skip(reason="Prism tests are disabled")
163163
@parametrize
164164
async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None:
165165
async with async_client.models.predictions.with_streaming_response.create(
@@ -178,7 +178,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) ->
178178

179179
assert cast(Any, response.is_closed) is True
180180

181-
@pytest.mark.skip()
181+
@pytest.mark.skip(reason="Prism tests are disabled")
182182
@parametrize
183183
async def test_path_params_create(self, async_client: AsyncReplicate) -> None:
184184
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):

tests/api_resources/models/test_readme.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class TestReadme:
1717
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1818

19-
@pytest.mark.skip()
19+
@pytest.mark.skip(reason="Prism tests are disabled")
2020
@parametrize
2121
def test_method_get(self, client: Replicate) -> None:
2222
readme = client.models.readme.get(
@@ -25,7 +25,7 @@ def test_method_get(self, client: Replicate) -> None:
2525
)
2626
assert_matches_type(str, readme, path=["response"])
2727

28-
@pytest.mark.skip()
28+
@pytest.mark.skip(reason="Prism tests are disabled")
2929
@parametrize
3030
def test_raw_response_get(self, client: Replicate) -> None:
3131
response = client.models.readme.with_raw_response.get(
@@ -38,7 +38,7 @@ def test_raw_response_get(self, client: Replicate) -> None:
3838
readme = response.parse()
3939
assert_matches_type(str, readme, path=["response"])
4040

41-
@pytest.mark.skip()
41+
@pytest.mark.skip(reason="Prism tests are disabled")
4242
@parametrize
4343
def test_streaming_response_get(self, client: Replicate) -> None:
4444
with client.models.readme.with_streaming_response.get(
@@ -53,7 +53,7 @@ def test_streaming_response_get(self, client: Replicate) -> None:
5353

5454
assert cast(Any, response.is_closed) is True
5555

56-
@pytest.mark.skip()
56+
@pytest.mark.skip(reason="Prism tests are disabled")
5757
@parametrize
5858
def test_path_params_get(self, client: Replicate) -> None:
5959
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):
@@ -74,7 +74,7 @@ class TestAsyncReadme:
7474
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7575
)
7676

77-
@pytest.mark.skip()
77+
@pytest.mark.skip(reason="Prism tests are disabled")
7878
@parametrize
7979
async def test_method_get(self, async_client: AsyncReplicate) -> None:
8080
readme = await async_client.models.readme.get(
@@ -83,7 +83,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None:
8383
)
8484
assert_matches_type(str, readme, path=["response"])
8585

86-
@pytest.mark.skip()
86+
@pytest.mark.skip(reason="Prism tests are disabled")
8787
@parametrize
8888
async def test_raw_response_get(self, async_client: AsyncReplicate) -> None:
8989
response = await async_client.models.readme.with_raw_response.get(
@@ -96,7 +96,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None:
9696
readme = await response.parse()
9797
assert_matches_type(str, readme, path=["response"])
9898

99-
@pytest.mark.skip()
99+
@pytest.mark.skip(reason="Prism tests are disabled")
100100
@parametrize
101101
async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None:
102102
async with async_client.models.readme.with_streaming_response.get(
@@ -111,7 +111,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non
111111

112112
assert cast(Any, response.is_closed) is True
113113

114-
@pytest.mark.skip()
114+
@pytest.mark.skip(reason="Prism tests are disabled")
115115
@parametrize
116116
async def test_path_params_get(self, async_client: AsyncReplicate) -> None:
117117
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):

0 commit comments

Comments
 (0)