Skip to content

Commit 5ebec81

Browse files
feat(api): update via SDK Studio
1 parent b6b3f9e commit 5ebec81

File tree

11 files changed

+3
-995
lines changed

11 files changed

+3
-995
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: 60
1+
configured_endpoints: 59
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fdigitalocean-genai-sdk-6e449984986e066baea73af5c2726811e74a284f0d68d49926ec5c7821c7ed31.yml
33
openapi_spec_hash: 78f43f68f46df0d81891ae2ff66bf3a0
4-
config_hash: 53eac5170a4d8967367b33767544a858
4+
config_hash: 3e04a2c7a4b0b9b16bd2956a3208b942

api.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,17 +306,9 @@ Methods:
306306
Types:
307307

308308
```python
309-
from gradientai.types import (
310-
ChatCompletionRequestMessageContentPartText,
311-
ChatCompletionTokenLogprob,
312-
ChatCreateCompletionResponse,
313-
)
309+
from gradientai.types import ChatCompletionRequestMessageContentPartText, ChatCompletionTokenLogprob
314310
```
315311

316-
Methods:
317-
318-
- <code title="post /chat/completions">client.chat.<a href="./src/gradientai/resources/chat.py">create_completion</a>(\*\*<a href="src/gradientai/types/chat_create_completion_params.py">params</a>) -> <a href="./src/gradientai/types/chat_create_completion_response.py">ChatCreateCompletionResponse</a></code>
319-
320312
# Embeddings
321313

322314
Types:

src/gradientai/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
if TYPE_CHECKING:
3434
from .resources import (
3535
auth,
36-
chat,
3736
agents,
3837
models,
3938
regions,
@@ -43,7 +42,6 @@
4342
indexing_jobs,
4443
knowledge_bases,
4544
)
46-
from .resources.chat import ChatResource, AsyncChatResource
4745
from .resources.models import ModelsResource, AsyncModelsResource
4846
from .resources.regions import RegionsResource, AsyncRegionsResource
4947
from .resources.auth.auth import AuthResource, AsyncAuthResource
@@ -163,12 +161,6 @@ def api_keys(self) -> APIKeysResource:
163161

164162
return APIKeysResource(self)
165163

166-
@cached_property
167-
def chat(self) -> ChatResource:
168-
from .resources.chat import ChatResource
169-
170-
return ChatResource(self)
171-
172164
@cached_property
173165
def embeddings(self) -> EmbeddingsResource:
174166
from .resources.embeddings import EmbeddingsResource
@@ -391,12 +383,6 @@ def api_keys(self) -> AsyncAPIKeysResource:
391383

392384
return AsyncAPIKeysResource(self)
393385

394-
@cached_property
395-
def chat(self) -> AsyncChatResource:
396-
from .resources.chat import AsyncChatResource
397-
398-
return AsyncChatResource(self)
399-
400386
@cached_property
401387
def embeddings(self) -> AsyncEmbeddingsResource:
402388
from .resources.embeddings import AsyncEmbeddingsResource
@@ -570,12 +556,6 @@ def api_keys(self) -> api_keys.APIKeysResourceWithRawResponse:
570556

571557
return APIKeysResourceWithRawResponse(self._client.api_keys)
572558

573-
@cached_property
574-
def chat(self) -> chat.ChatResourceWithRawResponse:
575-
from .resources.chat import ChatResourceWithRawResponse
576-
577-
return ChatResourceWithRawResponse(self._client.chat)
578-
579559
@cached_property
580560
def embeddings(self) -> embeddings.EmbeddingsResourceWithRawResponse:
581561
from .resources.embeddings import EmbeddingsResourceWithRawResponse
@@ -637,12 +617,6 @@ def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithRawResponse:
637617

638618
return AsyncAPIKeysResourceWithRawResponse(self._client.api_keys)
639619

640-
@cached_property
641-
def chat(self) -> chat.AsyncChatResourceWithRawResponse:
642-
from .resources.chat import AsyncChatResourceWithRawResponse
643-
644-
return AsyncChatResourceWithRawResponse(self._client.chat)
645-
646620
@cached_property
647621
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithRawResponse:
648622
from .resources.embeddings import AsyncEmbeddingsResourceWithRawResponse
@@ -704,12 +678,6 @@ def api_keys(self) -> api_keys.APIKeysResourceWithStreamingResponse:
704678

705679
return APIKeysResourceWithStreamingResponse(self._client.api_keys)
706680

707-
@cached_property
708-
def chat(self) -> chat.ChatResourceWithStreamingResponse:
709-
from .resources.chat import ChatResourceWithStreamingResponse
710-
711-
return ChatResourceWithStreamingResponse(self._client.chat)
712-
713681
@cached_property
714682
def embeddings(self) -> embeddings.EmbeddingsResourceWithStreamingResponse:
715683
from .resources.embeddings import EmbeddingsResourceWithStreamingResponse
@@ -771,12 +739,6 @@ def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithStreamingResponse:
771739

772740
return AsyncAPIKeysResourceWithStreamingResponse(self._client.api_keys)
773741

774-
@cached_property
775-
def chat(self) -> chat.AsyncChatResourceWithStreamingResponse:
776-
from .resources.chat import AsyncChatResourceWithStreamingResponse
777-
778-
return AsyncChatResourceWithStreamingResponse(self._client.chat)
779-
780742
@cached_property
781743
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithStreamingResponse:
782744
from .resources.embeddings import AsyncEmbeddingsResourceWithStreamingResponse

src/gradientai/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
AuthResourceWithStreamingResponse,
99
AsyncAuthResourceWithStreamingResponse,
1010
)
11-
from .chat import (
12-
ChatResource,
13-
AsyncChatResource,
14-
ChatResourceWithRawResponse,
15-
AsyncChatResourceWithRawResponse,
16-
ChatResourceWithStreamingResponse,
17-
AsyncChatResourceWithStreamingResponse,
18-
)
1911
from .agents import (
2012
AgentsResource,
2113
AsyncAgentsResource,
@@ -124,12 +116,6 @@
124116
"AsyncAPIKeysResourceWithRawResponse",
125117
"APIKeysResourceWithStreamingResponse",
126118
"AsyncAPIKeysResourceWithStreamingResponse",
127-
"ChatResource",
128-
"AsyncChatResource",
129-
"ChatResourceWithRawResponse",
130-
"AsyncChatResourceWithRawResponse",
131-
"ChatResourceWithStreamingResponse",
132-
"AsyncChatResourceWithStreamingResponse",
133119
"EmbeddingsResource",
134120
"AsyncEmbeddingsResource",
135121
"EmbeddingsResourceWithRawResponse",

0 commit comments

Comments
 (0)