Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.8"
".": "0.1.0-alpha.9"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 76
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradientai-e8b3cbc80e18e4f7f277010349f25e1319156704f359911dc464cc21a0d077a6.yml
openapi_spec_hash: c773d792724f5647ae25a5ae4ccec208
config_hash: e1b3d85ba9ae21d729a914c789422ba7
config_hash: 0bc3af28d4abd9be8bcc81f615bc832d
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.9 (2025-06-28)

Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)

### Features

* **api:** manual updates ([e0c210a](https://github.com/digitalocean/gradientai-python/commit/e0c210a0ffde24bd2c5877689f8ab222288cc597))

## 0.1.0-alpha.8 (2025-06-27)

Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
Expand Down
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Methods:
Types:

```python
from gradientai.types.agents.chat import ChatCompletionChunk, CompletionCreateResponse
from gradientai.types.agents.chat import AgentChatCompletionChunk, CompletionCreateResponse
```

Methods:
Expand Down Expand Up @@ -396,7 +396,7 @@ Methods:
Types:

```python
from gradientai.types.chat import CompletionCreateResponse
from gradientai.types.chat import ChatCompletionChunk, CompletionCreateResponse
```

Methods:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python"
version = "0.1.0-alpha.8"
version = "0.1.0-alpha.9"
description = "The official Python library for GradientAI"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/gradientai/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "gradientai"
__version__ = "0.1.0-alpha.8" # x-release-please-version
__version__ = "0.1.0-alpha.9" # x-release-please-version
18 changes: 9 additions & 9 deletions src/gradientai/resources/agents/chat/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from ...._streaming import Stream, AsyncStream
from ...._base_client import make_request_options
from ....types.agents.chat import completion_create_params
from ....types.agents.chat.chat_completion_chunk import ChatCompletionChunk
from ....types.agents.chat.completion_create_response import CompletionCreateResponse
from ....types.agents.chat.agent_chat_completion_chunk import AgentChatCompletionChunk

__all__ = ["CompletionsResource", "AsyncCompletionsResource"]

Expand Down Expand Up @@ -186,7 +186,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Stream[ChatCompletionChunk]:
) -> Stream[AgentChatCompletionChunk]:
"""
Creates a model response for the given chat conversation.

Expand Down Expand Up @@ -299,7 +299,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CompletionCreateResponse | Stream[ChatCompletionChunk]:
) -> CompletionCreateResponse | Stream[AgentChatCompletionChunk]:
"""
Creates a model response for the given chat conversation.

Expand Down Expand Up @@ -412,7 +412,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CompletionCreateResponse | Stream[ChatCompletionChunk]:
) -> CompletionCreateResponse | Stream[AgentChatCompletionChunk]:
return self._post(
"/chat/completions"
if self._client._base_url_overridden
Expand Down Expand Up @@ -446,7 +446,7 @@ def create(
),
cast_to=CompletionCreateResponse,
stream=stream or False,
stream_cls=Stream[ChatCompletionChunk],
stream_cls=Stream[AgentChatCompletionChunk],
)


Expand Down Expand Up @@ -610,7 +610,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AsyncStream[ChatCompletionChunk]:
) -> AsyncStream[AgentChatCompletionChunk]:
"""
Creates a model response for the given chat conversation.

Expand Down Expand Up @@ -723,7 +723,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CompletionCreateResponse | AsyncStream[ChatCompletionChunk]:
) -> CompletionCreateResponse | AsyncStream[AgentChatCompletionChunk]:
"""
Creates a model response for the given chat conversation.

Expand Down Expand Up @@ -836,7 +836,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CompletionCreateResponse | AsyncStream[ChatCompletionChunk]:
) -> CompletionCreateResponse | AsyncStream[AgentChatCompletionChunk]:
return await self._post(
"/chat/completions"
if self._client._base_url_overridden
Expand Down Expand Up @@ -870,7 +870,7 @@ async def create(
),
cast_to=CompletionCreateResponse,
stream=stream or False,
stream_cls=AsyncStream[ChatCompletionChunk],
stream_cls=AsyncStream[AgentChatCompletionChunk],
)


Expand Down
Loading