Skip to content

Commit 0dccc0c

Browse files
release: 3.4.0 (#54)
* feat(api): manual updates * release: 3.4.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 1af16f3 commit 0dccc0c

File tree

9 files changed

+16
-20
lines changed

9 files changed

+16
-20
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-
".": "3.3.0"
2+
".": "3.4.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-40c154e2fdc4fef9ca1cf8329c29b7102bf324acfc9589571d6f3452d1ca579c.yml
3-
openapi_spec_hash: 83a3d092965fde776b29b61f785459f9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-d15c113822740c8a5cd0d054d186c524ea6e15a9e64e8d0662b5a5a667745aaa.yml
3+
openapi_spec_hash: b56f95892c05800b022f39d77087037b
44
config_hash: 8497af1695ff361853c745dd869dc6b9

CHANGELOG.md

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

3+
## 3.4.0 (2025-10-09)
4+
5+
Full Changelog: [v3.3.0...v3.4.0](https://github.com/digitalocean/gradient-python/compare/v3.3.0...v3.4.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([bbd7ddc](https://github.com/digitalocean/gradient-python/commit/bbd7ddccfb3d98f39e61948365b92202b3cc9e33))
10+
311
## 3.3.0 (2025-10-07)
412

513
Full Changelog: [v3.2.0...v3.3.0](https://github.com/digitalocean/gradient-python/compare/v3.2.0...v3.3.0)

pyproject.toml

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

src/gradient/_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__ = "gradient"
4-
__version__ = "3.3.0" # x-release-please-version
4+
__version__ = "3.4.0" # x-release-please-version

src/gradient/resources/gpu_droplets/floating_ips/floating_ips.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ def create(
7979
- To create a new floating IP reserved to a region, send a POST request to
8080
`/v2/floating_ips` with the `region` attribute.
8181
82-
**Note**: In addition to the standard rate limiting, only 12 floating IPs may be
83-
created per 60 seconds.
84-
8582
Args:
8683
droplet_id: The ID of the Droplet that the floating IP will be assigned to.
8784
@@ -118,9 +115,6 @@ def create(
118115
- To create a new floating IP reserved to a region, send a POST request to
119116
`/v2/floating_ips` with the `region` attribute.
120117
121-
**Note**: In addition to the standard rate limiting, only 12 floating IPs may be
122-
created per 60 seconds.
123-
124118
Args:
125119
region: The slug identifier for the region the floating IP will be reserved to.
126120
@@ -336,9 +330,6 @@ async def create(
336330
- To create a new floating IP reserved to a region, send a POST request to
337331
`/v2/floating_ips` with the `region` attribute.
338332
339-
**Note**: In addition to the standard rate limiting, only 12 floating IPs may be
340-
created per 60 seconds.
341-
342333
Args:
343334
droplet_id: The ID of the Droplet that the floating IP will be assigned to.
344335
@@ -375,9 +366,6 @@ async def create(
375366
- To create a new floating IP reserved to a region, send a POST request to
376367
`/v2/floating_ips` with the `region` attribute.
377368
378-
**Note**: In addition to the standard rate limiting, only 12 floating IPs may be
379-
created per 60 seconds.
380-
381369
Args:
382370
region: The slug identifier for the region the floating IP will be reserved to.
383371

src/gradient/types/agents/chat/completion_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ChoiceMessage(BaseModel):
6767

6868

6969
class Choice(BaseModel):
70-
finish_reason: Literal["stop", "length", "tool_calls"]
70+
finish_reason: Literal["stop", "length", "tool_calls", "content_filter"]
7171
"""The reason the model stopped generating tokens.
7272
7373
This will be `stop` if the model hit a natural stop point or a provided stop

src/gradient/types/chat/completion_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ChoiceMessage(BaseModel):
6767

6868

6969
class Choice(BaseModel):
70-
finish_reason: Literal["stop", "length", "tool_calls"]
70+
finish_reason: Literal["stop", "length", "tool_calls", "content_filter"]
7171
"""The reason the model stopped generating tokens.
7272
7373
This will be `stop` if the model hit a natural stop point or a provided stop

src/gradient/types/shared/chat_completion_chunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Choice(BaseModel):
7171
delta: ChoiceDelta
7272
"""A chat completion delta generated by streamed model responses."""
7373

74-
finish_reason: Optional[Literal["stop", "length", "tool_calls"]] = None
74+
finish_reason: Optional[Literal["stop", "length", "tool_calls", "content_filter"]] = None
7575
"""The reason the model stopped generating tokens.
7676
7777
This will be `stop` if the model hit a natural stop point or a provided stop

0 commit comments

Comments
 (0)