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.3.0"
".": "3.4.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.3.0"
version = "3.4.0"
description = "The official Python library for the Gradient API"
dynamic = ["readme"]
license = "Apache-2.0"
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.3.0" # x-release-please-version
__version__ = "3.4.0" # x-release-please-version
12 changes: 0 additions & 12 deletions src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gradient/types/chat/completion_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gradient/types/shared/chat_completion_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down