Skip to content

Commit 33893b0

Browse files
chore: update SDK settings
1 parent c0e30a3 commit 33893b0

File tree

7 files changed

+34
-80
lines changed

7 files changed

+34
-80
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 170
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradientai-015417b36365dfcb32166e67379c38de8bf5127c33dff646097a819a7b4dc588.yml
33
openapi_spec_hash: d7d811c13cc79f15d82fe680cf425859
4-
config_hash: 3ad1734779befb065101197f2f35568c
4+
config_hash: 2eaf277c8b9bf0acf76b2b16f99ff443

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> Use with care in production environments and keep an eye on releases for updates or breaking changes.
77
88
<!-- prettier-ignore -->
9-
[![PyPI version](https://img.shields.io/pypi/v/do_gradientai.svg?label=pypi%20(stable))](https://pypi.org/project/do_gradientai/)
9+
[![PyPI version](https://img.shields.io/pypi/v/gradient.svg?label=pypi%20(stable))](https://pypi.org/project/gradient/)
1010
[![Docs](https://img.shields.io/badge/Docs-8A2BE2)](https://gradientai.digitalocean.com/getting-started/overview/)
1111

1212
The Gradient Python library provides convenient access to the Gradient REST API from any Python 3.8+
@@ -25,7 +25,7 @@ The full API of this library can be found in [api.md](api.md).
2525

2626
```sh
2727
# install from PyPI
28-
pip install --pre do_gradientai
28+
pip install --pre gradient
2929
```
3030

3131
## Usage
@@ -135,7 +135,7 @@ You can enable this by installing `aiohttp`:
135135

136136
```sh
137137
# install from PyPI
138-
pip install --pre do_gradientai[aiohttp]
138+
pip install --pre gradient[aiohttp]
139139
```
140140

141141
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "do_gradientai"
2+
name = "gradient"
33
version = "0.1.0-beta.4"
44
description = "The official Python library for GradientAI"
55
dynamic = ["readme"]

requirements-dev.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
aiohappyeyeballs==2.6.1
1414
# via aiohttp
1515
aiohttp==3.12.8
16-
# via do-gradientai
16+
# via gradient
1717
# via httpx-aiohttp
1818
aiosignal==1.3.2
1919
# via aiohttp
2020
annotated-types==0.6.0
2121
# via pydantic
2222
anyio==4.4.0
23-
# via do-gradientai
23+
# via gradient
2424
# via httpx
2525
argcomplete==3.1.2
2626
# via nox
@@ -37,7 +37,7 @@ dirty-equals==0.6.0
3737
distlib==0.3.7
3838
# via virtualenv
3939
distro==1.8.0
40-
# via do-gradientai
40+
# via gradient
4141
exceptiongroup==1.2.2
4242
# via anyio
4343
# via pytest
@@ -53,11 +53,11 @@ h11==0.16.0
5353
httpcore==1.0.9
5454
# via httpx
5555
httpx==0.28.1
56-
# via do-gradientai
56+
# via gradient
5757
# via httpx-aiohttp
5858
# via respx
5959
httpx-aiohttp==0.1.8
60-
# via do-gradientai
60+
# via gradient
6161
idna==3.4
6262
# via anyio
6363
# via httpx
@@ -90,7 +90,7 @@ propcache==0.3.1
9090
# via aiohttp
9191
# via yarl
9292
pydantic==2.10.3
93-
# via do-gradientai
93+
# via gradient
9494
pydantic-core==2.27.1
9595
# via pydantic
9696
pygments==2.18.0
@@ -114,14 +114,14 @@ six==1.16.0
114114
# via python-dateutil
115115
sniffio==1.3.0
116116
# via anyio
117-
# via do-gradientai
117+
# via gradient
118118
time-machine==2.9.0
119119
tomli==2.0.2
120120
# via mypy
121121
# via pytest
122122
typing-extensions==4.12.2
123123
# via anyio
124-
# via do-gradientai
124+
# via gradient
125125
# via multidict
126126
# via mypy
127127
# via pydantic

requirements.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
aiohappyeyeballs==2.6.1
1414
# via aiohttp
1515
aiohttp==3.12.8
16-
# via do-gradientai
16+
# via gradient
1717
# via httpx-aiohttp
1818
aiosignal==1.3.2
1919
# via aiohttp
2020
annotated-types==0.6.0
2121
# via pydantic
2222
anyio==4.4.0
23-
# via do-gradientai
23+
# via gradient
2424
# via httpx
2525
async-timeout==5.0.1
2626
# via aiohttp
@@ -30,7 +30,7 @@ certifi==2023.7.22
3030
# via httpcore
3131
# via httpx
3232
distro==1.8.0
33-
# via do-gradientai
33+
# via gradient
3434
exceptiongroup==1.2.2
3535
# via anyio
3636
frozenlist==1.6.2
@@ -41,10 +41,10 @@ h11==0.16.0
4141
httpcore==1.0.9
4242
# via httpx
4343
httpx==0.28.1
44-
# via do-gradientai
44+
# via gradient
4545
# via httpx-aiohttp
4646
httpx-aiohttp==0.1.8
47-
# via do-gradientai
47+
# via gradient
4848
idna==3.4
4949
# via anyio
5050
# via httpx
@@ -56,15 +56,15 @@ propcache==0.3.1
5656
# via aiohttp
5757
# via yarl
5858
pydantic==2.10.3
59-
# via do-gradientai
59+
# via gradient
6060
pydantic-core==2.27.1
6161
# via pydantic
6262
sniffio==1.3.0
6363
# via anyio
64-
# via do-gradientai
64+
# via gradient
6565
typing-extensions==4.12.2
6666
# via anyio
67-
# via do-gradientai
67+
# via gradient
6868
# via multidict
6969
# via pydantic
7070
# via pydantic-core

src/do_gradientai/_client.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,7 @@
3232
)
3333

3434
if TYPE_CHECKING:
35-
from .resources import (
36-
chat,
37-
agents,
38-
models,
39-
regions,
40-
databases,
41-
inference,
42-
gpu_droplets,
43-
knowledge_bases,
44-
)
35+
from .resources import chat, agents, models, regions, databases, inference, gpu_droplets, knowledge_bases
4536
from .resources.regions import RegionsResource, AsyncRegionsResource
4637
from .resources.chat.chat import ChatResource, AsyncChatResource
4738
from .resources.gpu_droplets import (
@@ -50,9 +41,6 @@
5041
)
5142
from .resources.agents.agents import AgentsResource, AsyncAgentsResource
5243
from .resources.models.models import ModelsResource, AsyncModelsResource
53-
from .resources.gpu_droplets.sizes import (
54-
SizesResource,
55-
)
5644
from .resources.databases.databases import DatabasesResource, AsyncDatabasesResource
5745
from .resources.inference.inference import InferenceResource, AsyncInferenceResource
5846
from .resources.gpu_droplets.snapshots import (
@@ -251,12 +239,6 @@ def load_balancers(self) -> LoadBalancersResource:
251239

252240
return LoadBalancersResource(self)
253241

254-
@cached_property
255-
def sizes(self) -> SizesResource:
256-
from .resources.gpu_droplets.sizes import SizesResource
257-
258-
return SizesResource(self)
259-
260242
@cached_property
261243
def snapshots(self) -> SnapshotsResource:
262244
from .resources.gpu_droplets.snapshots import SnapshotsResource

src/do_gradientai/types/__init__.py

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,7 @@
6969
from .agent_retrieve_response import AgentRetrieveResponse as AgentRetrieveResponse
7070
from .api_openai_api_key_info import APIOpenAIAPIKeyInfo as APIOpenAIAPIKeyInfo
7171
from .gpu_droplet_list_params import GPUDropletListParams as GPUDropletListParams
72-
from .agents.evaluation_metrics import (
73-
openai, # type: ignore # noqa: F401
74-
anthropic, # type: ignore # noqa: F401
75-
)
76-
from .api_deployment_visibility import (
77-
APIDeploymentVisibility as APIDeploymentVisibility,
78-
)
72+
from .api_deployment_visibility import APIDeploymentVisibility as APIDeploymentVisibility
7973
from .gpu_droplet_create_params import GPUDropletCreateParams as GPUDropletCreateParams
8074
from .gpu_droplet_list_response import GPUDropletListResponse as GPUDropletListResponse
8175
from .agent_update_status_params import (
@@ -175,45 +169,23 @@
175169
agents.evaluation_metrics.workspace_retrieve_response.WorkspaceRetrieveResponse.model_rebuild(
176170
_parent_namespace_depth=0
177171
)
178-
agents.evaluation_metrics.workspace_update_response.WorkspaceUpdateResponse.model_rebuild(
179-
_parent_namespace_depth=0
180-
)
181-
agents.evaluation_metrics.workspace_list_response.WorkspaceListResponse.model_rebuild(
182-
_parent_namespace_depth=0
183-
)
184-
agents.evaluation_metrics.workspaces.agent_list_response.AgentListResponse.model_rebuild(
185-
_parent_namespace_depth=0
186-
)
187-
agents.evaluation_metrics.workspaces.agent_move_response.AgentMoveResponse.model_rebuild(
188-
_parent_namespace_depth=0
189-
)
172+
agents.evaluation_metrics.workspace_update_response.WorkspaceUpdateResponse.model_rebuild(_parent_namespace_depth=0)
173+
agents.evaluation_metrics.workspace_list_response.WorkspaceListResponse.model_rebuild(_parent_namespace_depth=0)
174+
agents.evaluation_metrics.workspaces.agent_list_response.AgentListResponse.model_rebuild(_parent_namespace_depth=0)
175+
agents.evaluation_metrics.workspaces.agent_move_response.AgentMoveResponse.model_rebuild(_parent_namespace_depth=0)
190176
agents.evaluation_metrics.anthropic.key_list_agents_response.KeyListAgentsResponse.model_rebuild(
191177
_parent_namespace_depth=0
192178
)
193179
agents.evaluation_metrics.openai.key_list_agents_response.KeyListAgentsResponse.model_rebuild(
194180
_parent_namespace_depth=0
195181
)
196-
agents.function_create_response.FunctionCreateResponse.model_rebuild(
197-
_parent_namespace_depth=0
198-
)
199-
agents.function_update_response.FunctionUpdateResponse.model_rebuild(
200-
_parent_namespace_depth=0
201-
)
202-
agents.function_delete_response.FunctionDeleteResponse.model_rebuild(
203-
_parent_namespace_depth=0
204-
)
205-
agents.api_link_knowledge_base_output.APILinkKnowledgeBaseOutput.model_rebuild(
206-
_parent_namespace_depth=0
207-
)
208-
agents.knowledge_base_detach_response.KnowledgeBaseDetachResponse.model_rebuild(
209-
_parent_namespace_depth=0
210-
)
211-
agents.route_view_response.RouteViewResponse.model_rebuild(
212-
_parent_namespace_depth=0
213-
)
214-
models.providers.anthropic_list_agents_response.AnthropicListAgentsResponse.model_rebuild(
215-
_parent_namespace_depth=0
216-
)
182+
agents.function_create_response.FunctionCreateResponse.model_rebuild(_parent_namespace_depth=0)
183+
agents.function_update_response.FunctionUpdateResponse.model_rebuild(_parent_namespace_depth=0)
184+
agents.function_delete_response.FunctionDeleteResponse.model_rebuild(_parent_namespace_depth=0)
185+
agents.api_link_knowledge_base_output.APILinkKnowledgeBaseOutput.model_rebuild(_parent_namespace_depth=0)
186+
agents.knowledge_base_detach_response.KnowledgeBaseDetachResponse.model_rebuild(_parent_namespace_depth=0)
187+
agents.route_view_response.RouteViewResponse.model_rebuild(_parent_namespace_depth=0)
188+
models.providers.anthropic_list_agents_response.AnthropicListAgentsResponse.model_rebuild(_parent_namespace_depth=0)
217189
models.providers.openai_retrieve_agents_response.OpenAIRetrieveAgentsResponse.model_rebuild(
218190
_parent_namespace_depth=0
219191
)

0 commit comments

Comments
 (0)