Skip to content

Commit bbd7ddc

Browse files
feat(api): manual updates
1 parent 1af16f3 commit bbd7ddc

File tree

5 files changed

+5
-17
lines changed

5 files changed

+5
-17
lines changed

.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

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)