Skip to content

Commit e597aef

Browse files
release: 3.1.0 (#45)
1 parent 7056460 commit e597aef

38 files changed

+1884
-136
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.0.2"
2+
".": "3.1.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 173
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-621c3ebf5011c5ca508f78fccbea17de4ca6b35bfe99578c1ae2265021578d6f.yml
3-
openapi_spec_hash: e29d14e3e4679fcf22b3e760e49931b1
4-
config_hash: 3d425c415b7f7ab581418b43eb521cb3
1+
configured_endpoints: 175
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-40c154e2fdc4fef9ca1cf8329c29b7102bf324acfc9589571d6f3452d1ca579c.yml
3+
openapi_spec_hash: 83a3d092965fde776b29b61f785459f9
4+
config_hash: dd3a0f16fb9e072bb63c570b14beccd2

CHANGELOG.md

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

3+
## 3.1.0 (2025-10-03)
4+
5+
Full Changelog: [v3.0.2...v3.1.0](https://github.com/digitalocean/gradient-python/compare/v3.0.2...v3.1.0)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([20f2512](https://github.com/digitalocean/gradient-python/commit/20f251223fbe35fbe170b07be41fa6fd2656eed7))
10+
* **api:** update via SDK Studio ([09bf61b](https://github.com/digitalocean/gradient-python/commit/09bf61b5c24b1299a84ea6e8d4df3b88118d9fc3))
11+
* **api:** update via SDK Studio ([76d29b6](https://github.com/digitalocean/gradient-python/commit/76d29b61ce039f3f270715135ab4d0f444a52b3c))
12+
* **api:** update via SDK Studio ([fa68fb4](https://github.com/digitalocean/gradient-python/commit/fa68fb43e3e175b3dacd62d459b5d8c38b07e367))
13+
* **api:** update via SDK Studio ([e23ac14](https://github.com/digitalocean/gradient-python/commit/e23ac14538e17e8d33c33335285389cf13eefe04))
14+
* **api:** update via SDK Studio ([a5f6aa6](https://github.com/digitalocean/gradient-python/commit/a5f6aa656021a9aaa6a2e82dfa251f87f0096de0))
15+
* **api:** update via SDK Studio ([b900d76](https://github.com/digitalocean/gradient-python/commit/b900d769ba4a290523f17d2d69de850366c961b6))
16+
17+
18+
### Chores
19+
20+
* **client:** support model_access_key in image generations ([4b81c5c](https://github.com/digitalocean/gradient-python/commit/4b81c5cf4998707ca2b4eff25845f687e2002602))
21+
* **client:** support model_access_key in image generations for real ([c202e81](https://github.com/digitalocean/gradient-python/commit/c202e81d81732217a839a0c7c5e56178252362a1))
22+
* fix bash quoting ([d92383d](https://github.com/digitalocean/gradient-python/commit/d92383da134a32cb0ae6f5a1c3044ec4947deacc))
23+
* quote bash variables ([6673263](https://github.com/digitalocean/gradient-python/commit/6673263dbdee2ae77eabd2f6d88cf61921f9e63c))
24+
* remove preview warning ([e4cf6a8](https://github.com/digitalocean/gradient-python/commit/e4cf6a8b5b37acf483be7301aa0a661a5db43a05))
25+
* update actions versions ([7056460](https://github.com/digitalocean/gradient-python/commit/7056460cef8093329da4ed24f2e7bd286213e90d))
26+
327
## 3.0.2 (2025-09-24)
428

529
Full Changelog: [v3.0.1...v3.0.2](https://github.com/digitalocean/gradient-python/compare/v3.0.1...v3.0.2)

api.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ from gradient.types import (
1818
GarbageCollection,
1919
GPUInfo,
2020
Image,
21+
ImageGenCompletedEvent,
22+
ImageGenPartialImageEvent,
23+
ImageGenStreamEvent,
2124
Kernel,
2225
MetaProperties,
2326
NetworkV4,
@@ -383,6 +386,20 @@ Methods:
383386

384387
- <code title="post /chat/completions">client.chat.completions.<a href="./src/gradient/resources/chat/completions.py">create</a>(\*\*<a href="src/gradient/types/chat/completion_create_params.py">params</a>) -> <a href="./src/gradient/types/chat/completion_create_response.py">CompletionCreateResponse</a></code>
385388

389+
# Images
390+
391+
## Generations
392+
393+
Types:
394+
395+
```python
396+
from gradient.types.images import GenerationCreateResponse
397+
```
398+
399+
Methods:
400+
401+
- <code title="post /images/generations">client.images.generations.<a href="./src/gradient/resources/images/generations.py">create</a>(\*\*<a href="src/gradient/types/images/generation_create_params.py">params</a>) -> <a href="./src/gradient/types/images/generation_create_response.py">GenerationCreateResponse</a></code>
402+
386403
# GPUDroplets
387404

388405
Types:
@@ -757,6 +774,7 @@ Types:
757774

758775
```python
759776
from gradient.types.gpu_droplets.account import (
777+
SSHKeys,
760778
KeyCreateResponse,
761779
KeyRetrieveResponse,
762780
KeyUpdateResponse,
@@ -834,6 +852,7 @@ from gradient.types.knowledge_bases import (
834852
DataSourceCreateResponse,
835853
DataSourceListResponse,
836854
DataSourceDeleteResponse,
855+
DataSourceCreatePresignedURLsResponse,
837856
)
838857
```
839858

@@ -842,6 +861,7 @@ Methods:
842861
- <code title="post /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources">client.knowledge_bases.data_sources.<a href="./src/gradient/resources/knowledge_bases/data_sources.py">create</a>(path_knowledge_base_uuid, \*\*<a href="src/gradient/types/knowledge_bases/data_source_create_params.py">params</a>) -> <a href="./src/gradient/types/knowledge_bases/data_source_create_response.py">DataSourceCreateResponse</a></code>
843862
- <code title="get /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources">client.knowledge_bases.data_sources.<a href="./src/gradient/resources/knowledge_bases/data_sources.py">list</a>(knowledge_base_uuid, \*\*<a href="src/gradient/types/knowledge_bases/data_source_list_params.py">params</a>) -> <a href="./src/gradient/types/knowledge_bases/data_source_list_response.py">DataSourceListResponse</a></code>
844863
- <code title="delete /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}">client.knowledge_bases.data_sources.<a href="./src/gradient/resources/knowledge_bases/data_sources.py">delete</a>(data_source_uuid, \*, knowledge_base_uuid) -> <a href="./src/gradient/types/knowledge_bases/data_source_delete_response.py">DataSourceDeleteResponse</a></code>
864+
- <code title="post /v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls">client.knowledge_bases.data_sources.<a href="./src/gradient/resources/knowledge_bases/data_sources.py">create_presigned_urls</a>(\*\*<a href="src/gradient/types/knowledge_bases/data_source_create_presigned_urls_params.py">params</a>) -> <a href="./src/gradient/types/knowledge_bases/data_source_create_presigned_urls_response.py">DataSourceCreatePresignedURLsResponse</a></code>
845865

846866
## IndexingJobs
847867

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.0.2"
3+
version = "3.1.0"
44
description = "The official Python library for the Gradient API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/gradient/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from .resources import (
3636
chat,
3737
agents,
38+
images,
3839
models,
3940
regions,
4041
databases,
@@ -49,6 +50,7 @@
4950
AsyncGPUDropletsResource,
5051
)
5152
from .resources.agents.agents import AgentsResource, AsyncAgentsResource
53+
from .resources.images.images import ImagesResource, AsyncImagesResource
5254
from .resources.models.models import ModelsResource, AsyncModelsResource
5355
from .resources.databases.databases import DatabasesResource, AsyncDatabasesResource
5456
from .resources.inference.inference import InferenceResource, AsyncInferenceResource
@@ -182,6 +184,12 @@ def chat(self) -> ChatResource:
182184

183185
return ChatResource(self)
184186

187+
@cached_property
188+
def images(self) -> ImagesResource:
189+
from .resources.images import ImagesResource
190+
191+
return ImagesResource(self)
192+
185193
@cached_property
186194
def gpu_droplets(self) -> GPUDropletsResource:
187195
from .resources.gpu_droplets import GPUDropletsResource
@@ -471,6 +479,12 @@ def chat(self) -> AsyncChatResource:
471479

472480
return AsyncChatResource(self)
473481

482+
@cached_property
483+
def images(self) -> AsyncImagesResource:
484+
from .resources.images import AsyncImagesResource
485+
486+
return AsyncImagesResource(self)
487+
474488
@cached_property
475489
def gpu_droplets(self) -> AsyncGPUDropletsResource:
476490
from .resources.gpu_droplets import AsyncGPUDropletsResource
@@ -665,6 +679,12 @@ def chat(self) -> chat.ChatResourceWithRawResponse:
665679

666680
return ChatResourceWithRawResponse(self._client.chat)
667681

682+
@cached_property
683+
def images(self) -> images.ImagesResourceWithRawResponse:
684+
from .resources.images import ImagesResourceWithRawResponse
685+
686+
return ImagesResourceWithRawResponse(self._client.images)
687+
668688
@cached_property
669689
def gpu_droplets(self) -> gpu_droplets.GPUDropletsResourceWithRawResponse:
670690
from .resources.gpu_droplets import GPUDropletsResourceWithRawResponse
@@ -720,6 +740,12 @@ def chat(self) -> chat.AsyncChatResourceWithRawResponse:
720740

721741
return AsyncChatResourceWithRawResponse(self._client.chat)
722742

743+
@cached_property
744+
def images(self) -> images.AsyncImagesResourceWithRawResponse:
745+
from .resources.images import AsyncImagesResourceWithRawResponse
746+
747+
return AsyncImagesResourceWithRawResponse(self._client.images)
748+
723749
@cached_property
724750
def gpu_droplets(self) -> gpu_droplets.AsyncGPUDropletsResourceWithRawResponse:
725751
from .resources.gpu_droplets import AsyncGPUDropletsResourceWithRawResponse
@@ -779,6 +805,12 @@ def chat(self) -> chat.ChatResourceWithStreamingResponse:
779805

780806
return ChatResourceWithStreamingResponse(self._client.chat)
781807

808+
@cached_property
809+
def images(self) -> images.ImagesResourceWithStreamingResponse:
810+
from .resources.images import ImagesResourceWithStreamingResponse
811+
812+
return ImagesResourceWithStreamingResponse(self._client.images)
813+
782814
@cached_property
783815
def gpu_droplets(self) -> gpu_droplets.GPUDropletsResourceWithStreamingResponse:
784816
from .resources.gpu_droplets import GPUDropletsResourceWithStreamingResponse
@@ -838,6 +870,12 @@ def chat(self) -> chat.AsyncChatResourceWithStreamingResponse:
838870

839871
return AsyncChatResourceWithStreamingResponse(self._client.chat)
840872

873+
@cached_property
874+
def images(self) -> images.AsyncImagesResourceWithStreamingResponse:
875+
from .resources.images import AsyncImagesResourceWithStreamingResponse
876+
877+
return AsyncImagesResourceWithStreamingResponse(self._client.images)
878+
841879
@cached_property
842880
def gpu_droplets(
843881
self,

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.0.2" # x-release-please-version
4+
__version__ = "3.1.0" # x-release-please-version

src/gradient/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
AgentsResourceWithStreamingResponse,
1717
AsyncAgentsResourceWithStreamingResponse,
1818
)
19+
from .images import (
20+
ImagesResource,
21+
AsyncImagesResource,
22+
ImagesResourceWithRawResponse,
23+
AsyncImagesResourceWithRawResponse,
24+
ImagesResourceWithStreamingResponse,
25+
AsyncImagesResourceWithStreamingResponse,
26+
)
1927
from .models import (
2028
ModelsResource,
2129
AsyncModelsResource,
@@ -78,6 +86,12 @@
7886
"AsyncChatResourceWithRawResponse",
7987
"ChatResourceWithStreamingResponse",
8088
"AsyncChatResourceWithStreamingResponse",
89+
"ImagesResource",
90+
"AsyncImagesResource",
91+
"ImagesResourceWithRawResponse",
92+
"AsyncImagesResourceWithRawResponse",
93+
"ImagesResourceWithStreamingResponse",
94+
"AsyncImagesResourceWithStreamingResponse",
8195
"GPUDropletsResource",
8296
"AsyncGPUDropletsResource",
8397
"GPUDropletsResourceWithRawResponse",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .images import (
4+
ImagesResource,
5+
AsyncImagesResource,
6+
ImagesResourceWithRawResponse,
7+
AsyncImagesResourceWithRawResponse,
8+
ImagesResourceWithStreamingResponse,
9+
AsyncImagesResourceWithStreamingResponse,
10+
)
11+
from .generations import (
12+
GenerationsResource,
13+
AsyncGenerationsResource,
14+
GenerationsResourceWithRawResponse,
15+
AsyncGenerationsResourceWithRawResponse,
16+
GenerationsResourceWithStreamingResponse,
17+
AsyncGenerationsResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"GenerationsResource",
22+
"AsyncGenerationsResource",
23+
"GenerationsResourceWithRawResponse",
24+
"AsyncGenerationsResourceWithRawResponse",
25+
"GenerationsResourceWithStreamingResponse",
26+
"AsyncGenerationsResourceWithStreamingResponse",
27+
"ImagesResource",
28+
"AsyncImagesResource",
29+
"ImagesResourceWithRawResponse",
30+
"AsyncImagesResourceWithRawResponse",
31+
"ImagesResourceWithStreamingResponse",
32+
"AsyncImagesResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)