Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0-alpha.16"
".": "2.0.0-alpha.17"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.0.0-alpha.17 (2025-08-12)

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)

### Chores

* **internal:** codegen related update ([ea920d5](https://github.com/replicate/replicate-python-stainless/commit/ea920d54977d46705b6dcf449e2fcbe7a9af76c8))
* **internal:** update comment in script ([8e30c35](https://github.com/replicate/replicate-python-stainless/commit/8e30c35f1a5935b9a69046f1e971a3808c4e28b8))

## 2.0.0-alpha.16 (2025-08-09)

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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "replicate"
version = "2.0.0-alpha.16"
version = "2.0.0-alpha.17"
description = "The official Python library for the replicate API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/replicate/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "replicate"
__version__ = "2.0.0-alpha.16" # x-release-please-version
__version__ = "2.0.0-alpha.17" # x-release-please-version
20 changes: 10 additions & 10 deletions tests/api_resources/deployments/test_predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TestPredictions:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_path_params_create(self, async_client: AsyncReplicate) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"):
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/models/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class TestExamples:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_path_params_list(self, async_client: AsyncReplicate) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):
Expand Down
20 changes: 10 additions & 10 deletions tests/api_resources/models/test_predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TestPredictions:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_path_params_create(self, async_client: AsyncReplicate) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"):
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/models/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class TestReadme:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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