From bbd7ddccfb3d98f39e61948365b92202b3cc9e33 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Oct 2025 19:10:28 +0000 Subject: [PATCH 1/2] feat(api): manual updates --- .stats.yml | 4 ++-- .../gpu_droplets/floating_ips/floating_ips.py | 12 ------------ .../types/agents/chat/completion_create_response.py | 2 +- .../types/chat/completion_create_response.py | 2 +- src/gradient/types/shared/chat_completion_chunk.py | 2 +- 5 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60c46674..3f41901a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 175 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-40c154e2fdc4fef9ca1cf8329c29b7102bf324acfc9589571d6f3452d1ca579c.yml -openapi_spec_hash: 83a3d092965fde776b29b61f785459f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-d15c113822740c8a5cd0d054d186c524ea6e15a9e64e8d0662b5a5a667745aaa.yml +openapi_spec_hash: b56f95892c05800b022f39d77087037b config_hash: 8497af1695ff361853c745dd869dc6b9 diff --git a/src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py b/src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py index 58b4bdb0..f55bfd41 100644 --- a/src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py +++ b/src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py @@ -79,9 +79,6 @@ def create( - To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute. - **Note**: In addition to the standard rate limiting, only 12 floating IPs may be - created per 60 seconds. - Args: droplet_id: The ID of the Droplet that the floating IP will be assigned to. @@ -118,9 +115,6 @@ def create( - To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute. - **Note**: In addition to the standard rate limiting, only 12 floating IPs may be - created per 60 seconds. - Args: region: The slug identifier for the region the floating IP will be reserved to. @@ -336,9 +330,6 @@ async def create( - To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute. - **Note**: In addition to the standard rate limiting, only 12 floating IPs may be - created per 60 seconds. - Args: droplet_id: The ID of the Droplet that the floating IP will be assigned to. @@ -375,9 +366,6 @@ async def create( - To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute. - **Note**: In addition to the standard rate limiting, only 12 floating IPs may be - created per 60 seconds. - Args: region: The slug identifier for the region the floating IP will be reserved to. diff --git a/src/gradient/types/agents/chat/completion_create_response.py b/src/gradient/types/agents/chat/completion_create_response.py index f3dedb4e..69b3d203 100644 --- a/src/gradient/types/agents/chat/completion_create_response.py +++ b/src/gradient/types/agents/chat/completion_create_response.py @@ -67,7 +67,7 @@ class ChoiceMessage(BaseModel): class Choice(BaseModel): - finish_reason: Literal["stop", "length", "tool_calls"] + finish_reason: Literal["stop", "length", "tool_calls", "content_filter"] """The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop diff --git a/src/gradient/types/chat/completion_create_response.py b/src/gradient/types/chat/completion_create_response.py index 9e157aee..151f6556 100644 --- a/src/gradient/types/chat/completion_create_response.py +++ b/src/gradient/types/chat/completion_create_response.py @@ -67,7 +67,7 @@ class ChoiceMessage(BaseModel): class Choice(BaseModel): - finish_reason: Literal["stop", "length", "tool_calls"] + finish_reason: Literal["stop", "length", "tool_calls", "content_filter"] """The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop diff --git a/src/gradient/types/shared/chat_completion_chunk.py b/src/gradient/types/shared/chat_completion_chunk.py index e30e0604..ff705bf4 100644 --- a/src/gradient/types/shared/chat_completion_chunk.py +++ b/src/gradient/types/shared/chat_completion_chunk.py @@ -71,7 +71,7 @@ class Choice(BaseModel): delta: ChoiceDelta """A chat completion delta generated by streamed model responses.""" - finish_reason: Optional[Literal["stop", "length", "tool_calls"]] = None + finish_reason: Optional[Literal["stop", "length", "tool_calls", "content_filter"]] = None """The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop From 3282306ea3ac59037422a49bea82188485928b29 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Oct 2025 19:10:49 +0000 Subject: [PATCH 2/2] release: 3.4.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/gradient/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ff1c7af5..2437b419 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.3.0" + ".": "3.4.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f6a3702..c39b7324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.4.0 (2025-10-09) + +Full Changelog: [v3.3.0...v3.4.0](https://github.com/digitalocean/gradient-python/compare/v3.3.0...v3.4.0) + +### Features + +* **api:** manual updates ([bbd7ddc](https://github.com/digitalocean/gradient-python/commit/bbd7ddccfb3d98f39e61948365b92202b3cc9e33)) + ## 3.3.0 (2025-10-07) Full Changelog: [v3.2.0...v3.3.0](https://github.com/digitalocean/gradient-python/compare/v3.2.0...v3.3.0) diff --git a/pyproject.toml b/pyproject.toml index d2489702..75cb7f7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gradient" -version = "3.3.0" +version = "3.4.0" description = "The official Python library for the Gradient API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/gradient/_version.py b/src/gradient/_version.py index f90aaf96..440935e9 100644 --- a/src/gradient/_version.py +++ b/src/gradient/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "gradient" -__version__ = "3.3.0" # x-release-please-version +__version__ = "3.4.0" # x-release-please-version