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 @@
{
".": "3.0.0-beta.3"
".": "3.0.0-beta.4"
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 3.0.0-beta.4 (2025-08-12)

Full Changelog: [v3.0.0-beta.3...v3.0.0-beta.4](https://github.com/digitalocean/gradient-python/compare/v3.0.0-beta.3...v3.0.0-beta.4)

### Chores

* **internal:** codegen related update ([4757cc5](https://github.com/digitalocean/gradient-python/commit/4757cc594565cf8500b4087205e6eb5fd8c5d5c5))
* **internal:** update comment in script ([c324412](https://github.com/digitalocean/gradient-python/commit/c32441201c3156cc4fe5b400a4f396eaf19ecaad))
* update @stainless-api/prism-cli to v5.15.0 ([835aa7c](https://github.com/digitalocean/gradient-python/commit/835aa7c204f5def64cdcd8b863581fd6a1ea37b6))

## 3.0.0-beta.3 (2025-08-08)

Full Changelog: [v3.0.0-beta.2...v3.0.0-beta.3](https://github.com/digitalocean/gradient-python/compare/v3.0.0-beta.2...v3.0.0-beta.3)
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 = "gradient"
version = "3.0.0-beta.3"
version = "3.0.0-beta.4"
description = "The official Python library for the Gradient API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
echo -n "Waiting for server"
Expand All @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
fi
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/gradient/_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__ = "gradient"
__version__ = "3.0.0-beta.3" # x-release-please-version
__version__ = "3.0.0-beta.4" # x-release-please-version
32 changes: 16 additions & 16 deletions tests/api_resources/agents/chat/test_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TestCompletions:
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_overload_1(self, client: Gradient) -> None:
completion = client.agents.chat.completions.create(
Expand All @@ -31,7 +31,7 @@ def test_method_create_overload_1(self, client: Gradient) -> None:
)
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_method_create_with_all_params_overload_1(self, client: Gradient) -> None:
completion = client.agents.chat.completions.create(
Expand Down Expand Up @@ -71,7 +71,7 @@ def test_method_create_with_all_params_overload_1(self, client: Gradient) -> Non
)
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_raw_response_create_overload_1(self, client: Gradient) -> None:
response = client.agents.chat.completions.with_raw_response.create(
Expand All @@ -89,7 +89,7 @@ def test_raw_response_create_overload_1(self, client: Gradient) -> None:
completion = response.parse()
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_streaming_response_create_overload_1(self, client: Gradient) -> None:
with client.agents.chat.completions.with_streaming_response.create(
Expand All @@ -109,7 +109,7 @@ def test_streaming_response_create_overload_1(self, client: Gradient) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_method_create_overload_2(self, client: Gradient) -> None:
completion_stream = client.agents.chat.completions.create(
Expand All @@ -124,7 +124,7 @@ def test_method_create_overload_2(self, client: Gradient) -> None:
)
completion_stream.response.close()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_method_create_with_all_params_overload_2(self, client: Gradient) -> None:
completion_stream = client.agents.chat.completions.create(
Expand Down Expand Up @@ -164,7 +164,7 @@ def test_method_create_with_all_params_overload_2(self, client: Gradient) -> Non
)
completion_stream.response.close()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_raw_response_create_overload_2(self, client: Gradient) -> None:
response = client.agents.chat.completions.with_raw_response.create(
Expand All @@ -182,7 +182,7 @@ def test_raw_response_create_overload_2(self, client: Gradient) -> None:
stream = response.parse()
stream.close()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
def test_streaming_response_create_overload_2(self, client: Gradient) -> None:
with client.agents.chat.completions.with_streaming_response.create(
Expand Down Expand Up @@ -212,7 +212,7 @@ class TestAsyncCompletions:
ids=["loose", "strict", "aiohttp"],
)

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_method_create_overload_1(self, async_client: AsyncGradient) -> None:
completion = await async_client.agents.chat.completions.create(
Expand All @@ -226,7 +226,7 @@ async def test_method_create_overload_1(self, async_client: AsyncGradient) -> No
)
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncGradient) -> None:
completion = await async_client.agents.chat.completions.create(
Expand Down Expand Up @@ -266,7 +266,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
)
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_raw_response_create_overload_1(self, async_client: AsyncGradient) -> None:
response = await async_client.agents.chat.completions.with_raw_response.create(
Expand All @@ -284,7 +284,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncGradient)
completion = await response.parse()
assert_matches_type(CompletionCreateResponse, completion, path=["response"])

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_streaming_response_create_overload_1(self, async_client: AsyncGradient) -> None:
async with async_client.agents.chat.completions.with_streaming_response.create(
Expand All @@ -304,7 +304,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncGra

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_method_create_overload_2(self, async_client: AsyncGradient) -> None:
completion_stream = await async_client.agents.chat.completions.create(
Expand All @@ -319,7 +319,7 @@ async def test_method_create_overload_2(self, async_client: AsyncGradient) -> No
)
await completion_stream.response.aclose()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncGradient) -> None:
completion_stream = await async_client.agents.chat.completions.create(
Expand Down Expand Up @@ -359,7 +359,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
)
await completion_stream.response.aclose()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_raw_response_create_overload_2(self, async_client: AsyncGradient) -> None:
response = await async_client.agents.chat.completions.with_raw_response.create(
Expand All @@ -377,7 +377,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncGradient)
stream = await response.parse()
await stream.close()

@pytest.mark.skip()
@pytest.mark.skip(reason="Prism tests are disabled")
@parametrize
async def test_streaming_response_create_overload_2(self, async_client: AsyncGradient) -> None:
async with async_client.agents.chat.completions.with_streaming_response.create(
Expand Down
Loading