Skip to content

Commit 34187c3

Browse files
feat(api): update via SDK Studio
1 parent 68e369c commit 34187c3

File tree

9 files changed

+2
-489
lines changed

9 files changed

+2
-489
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 69
1+
configured_endpoints: 67
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradientai-e40feaac59c85aace6aa42d2749b20e0955dbbae58b06c3a650bc03adafcd7b5.yml
33
openapi_spec_hash: 825c1a4816938e9f594b7a8c06692667
4-
config_hash: 190bed33fe275347e4871077b32af63f
4+
config_hash: 886acf2e0eda98b9a718598587f7f81e

api.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -365,19 +365,6 @@ Methods:
365365
- <code title="delete /v2/gen-ai/models/api_keys/{api_key_uuid}">client.inference.api_keys.<a href="./src/do_gradientai/resources/inference/api_keys.py">delete</a>(api_key_uuid) -> <a href="./src/do_gradientai/types/inference/api_key_delete_response.py">APIKeyDeleteResponse</a></code>
366366
- <code title="put /v2/gen-ai/models/api_keys/{api_key_uuid}/regenerate">client.inference.api_keys.<a href="./src/do_gradientai/resources/inference/api_keys.py">update_regenerate</a>(api_key_uuid) -> <a href="./src/do_gradientai/types/inference/api_key_update_regenerate_response.py">APIKeyUpdateRegenerateResponse</a></code>
367367

368-
## Models
369-
370-
Types:
371-
372-
```python
373-
from do_gradientai.types.inference import Model, ModelListResponse
374-
```
375-
376-
Methods:
377-
378-
- <code title="get /models/{model}">client.inference.models.<a href="./src/do_gradientai/resources/inference/models.py">retrieve</a>(model) -> <a href="./src/do_gradientai/types/inference/model.py">Model</a></code>
379-
- <code title="get /models">client.inference.models.<a href="./src/do_gradientai/resources/inference/models.py">list</a>() -> <a href="./src/do_gradientai/types/inference/model_list_response.py">ModelListResponse</a></code>
380-
381368
# Models
382369

383370
Types:

src/do_gradientai/resources/inference/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .models import (
4-
ModelsResource,
5-
AsyncModelsResource,
6-
ModelsResourceWithRawResponse,
7-
AsyncModelsResourceWithRawResponse,
8-
ModelsResourceWithStreamingResponse,
9-
AsyncModelsResourceWithStreamingResponse,
10-
)
113
from .api_keys import (
124
APIKeysResource,
135
AsyncAPIKeysResource,
@@ -32,12 +24,6 @@
3224
"AsyncAPIKeysResourceWithRawResponse",
3325
"APIKeysResourceWithStreamingResponse",
3426
"AsyncAPIKeysResourceWithStreamingResponse",
35-
"ModelsResource",
36-
"AsyncModelsResource",
37-
"ModelsResourceWithRawResponse",
38-
"AsyncModelsResourceWithRawResponse",
39-
"ModelsResourceWithStreamingResponse",
40-
"AsyncModelsResourceWithStreamingResponse",
4127
"InferenceResource",
4228
"AsyncInferenceResource",
4329
"InferenceResourceWithRawResponse",

src/do_gradientai/resources/inference/inference.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
from __future__ import annotations
44

5-
from .models import (
6-
ModelsResource,
7-
AsyncModelsResource,
8-
ModelsResourceWithRawResponse,
9-
AsyncModelsResourceWithRawResponse,
10-
ModelsResourceWithStreamingResponse,
11-
AsyncModelsResourceWithStreamingResponse,
12-
)
135
from .api_keys import (
146
APIKeysResource,
157
AsyncAPIKeysResource,
@@ -29,10 +21,6 @@ class InferenceResource(SyncAPIResource):
2921
def api_keys(self) -> APIKeysResource:
3022
return APIKeysResource(self._client)
3123

32-
@cached_property
33-
def models(self) -> ModelsResource:
34-
return ModelsResource(self._client)
35-
3624
@cached_property
3725
def with_raw_response(self) -> InferenceResourceWithRawResponse:
3826
"""
@@ -58,10 +46,6 @@ class AsyncInferenceResource(AsyncAPIResource):
5846
def api_keys(self) -> AsyncAPIKeysResource:
5947
return AsyncAPIKeysResource(self._client)
6048

61-
@cached_property
62-
def models(self) -> AsyncModelsResource:
63-
return AsyncModelsResource(self._client)
64-
6549
@cached_property
6650
def with_raw_response(self) -> AsyncInferenceResourceWithRawResponse:
6751
"""
@@ -90,10 +74,6 @@ def __init__(self, inference: InferenceResource) -> None:
9074
def api_keys(self) -> APIKeysResourceWithRawResponse:
9175
return APIKeysResourceWithRawResponse(self._inference.api_keys)
9276

93-
@cached_property
94-
def models(self) -> ModelsResourceWithRawResponse:
95-
return ModelsResourceWithRawResponse(self._inference.models)
96-
9777

9878
class AsyncInferenceResourceWithRawResponse:
9979
def __init__(self, inference: AsyncInferenceResource) -> None:
@@ -103,10 +83,6 @@ def __init__(self, inference: AsyncInferenceResource) -> None:
10383
def api_keys(self) -> AsyncAPIKeysResourceWithRawResponse:
10484
return AsyncAPIKeysResourceWithRawResponse(self._inference.api_keys)
10585

106-
@cached_property
107-
def models(self) -> AsyncModelsResourceWithRawResponse:
108-
return AsyncModelsResourceWithRawResponse(self._inference.models)
109-
11086

11187
class InferenceResourceWithStreamingResponse:
11288
def __init__(self, inference: InferenceResource) -> None:
@@ -116,10 +92,6 @@ def __init__(self, inference: InferenceResource) -> None:
11692
def api_keys(self) -> APIKeysResourceWithStreamingResponse:
11793
return APIKeysResourceWithStreamingResponse(self._inference.api_keys)
11894

119-
@cached_property
120-
def models(self) -> ModelsResourceWithStreamingResponse:
121-
return ModelsResourceWithStreamingResponse(self._inference.models)
122-
12395

12496
class AsyncInferenceResourceWithStreamingResponse:
12597
def __init__(self, inference: AsyncInferenceResource) -> None:
@@ -128,7 +100,3 @@ def __init__(self, inference: AsyncInferenceResource) -> None:
128100
@cached_property
129101
def api_keys(self) -> AsyncAPIKeysResourceWithStreamingResponse:
130102
return AsyncAPIKeysResourceWithStreamingResponse(self._inference.api_keys)
131-
132-
@cached_property
133-
def models(self) -> AsyncModelsResourceWithStreamingResponse:
134-
return AsyncModelsResourceWithStreamingResponse(self._inference.models)

src/do_gradientai/resources/inference/models.py

Lines changed: 0 additions & 226 deletions
This file was deleted.

src/do_gradientai/types/inference/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
from __future__ import annotations
44

5-
from .model import Model as Model
65
from .api_key_list_params import APIKeyListParams as APIKeyListParams
7-
from .model_list_response import ModelListResponse as ModelListResponse
86
from .api_key_create_params import APIKeyCreateParams as APIKeyCreateParams
97
from .api_key_list_response import APIKeyListResponse as APIKeyListResponse
108
from .api_key_update_params import APIKeyUpdateParams as APIKeyUpdateParams

src/do_gradientai/types/inference/model.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)