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.21"
".": "0.1.0-alpha.22"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-186e713234760e9f755b35c78809f89378e4f778a451cd5e30649f41489e0bfd.yml
openapi_spec_hash: 5fb2ce9d8055253d597567a8a3293e73
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-d34620b462127c45497743c97fd3569f9e629d9fbd97c0707087eeddbd4b3de1.yml
openapi_spec_hash: 23864c98d555350fe56f1d0e56f205c5
config_hash: a8441af7cb2db855d79fd372ee3b9fb1
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.22 (2025-07-17)

Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/sst/opencode-sdk-python/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)

### Features

* **api:** api update ([582070a](https://github.com/sst/opencode-sdk-python/commit/582070ae69b0ae1088271038b0fcb818c30c74cf))

## 0.1.0-alpha.21 (2025-07-17)

Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/sst/opencode-sdk-python/compare/v0.1.0-alpha.20...v0.1.0-alpha.21)
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 = "opencode-ai"
version = "0.1.0-alpha.21"
version = "0.1.0-alpha.22"
description = "The official Python library for the opencode API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/opencode_ai/_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__ = "opencode_ai"
__version__ = "0.1.0-alpha.21" # x-release-please-version
__version__ = "0.1.0-alpha.22" # x-release-please-version
4 changes: 0 additions & 4 deletions src/opencode_ai/resources/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def chat(
model_id: str,
parts: Iterable[session_chat_params.Part],
provider_id: str,
session_id: str,
message_id: str | NotGiven = NOT_GIVEN,
mode: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -194,7 +193,6 @@ def chat(
"model_id": model_id,
"parts": parts,
"provider_id": provider_id,
"session_id": session_id,
"message_id": message_id,
"mode": mode,
},
Expand Down Expand Up @@ -529,7 +527,6 @@ async def chat(
model_id: str,
parts: Iterable[session_chat_params.Part],
provider_id: str,
session_id: str,
message_id: str | NotGiven = NOT_GIVEN,
mode: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -562,7 +559,6 @@ async def chat(
"model_id": model_id,
"parts": parts,
"provider_id": provider_id,
"session_id": session_id,
"message_id": message_id,
"mode": mode,
},
Expand Down
2 changes: 0 additions & 2 deletions src/opencode_ai/types/session_chat_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class SessionChatParams(TypedDict, total=False):

provider_id: Required[Annotated[str, PropertyInfo(alias="providerID")]]

session_id: Required[Annotated[str, PropertyInfo(alias="sessionID")]]

message_id: Annotated[str, PropertyInfo(alias="messageID")]

mode: str
Expand Down
10 changes: 0 additions & 10 deletions tests/api_resources/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def test_method_chat(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)
assert_matches_type(AssistantMessage, session, path=["response"])

Expand All @@ -202,7 +201,6 @@ def test_method_chat_with_all_params(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
message_id="msg",
mode="mode",
)
Expand All @@ -221,7 +219,6 @@ def test_raw_response_chat(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)

assert response.is_closed is True
Expand All @@ -242,7 +239,6 @@ def test_streaming_response_chat(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -266,7 +262,6 @@ def test_path_params_chat(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)

@pytest.mark.skip()
Expand Down Expand Up @@ -658,7 +653,6 @@ async def test_method_chat(self, async_client: AsyncOpencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)
assert_matches_type(AssistantMessage, session, path=["response"])

Expand All @@ -681,7 +675,6 @@ async def test_method_chat_with_all_params(self, async_client: AsyncOpencode) ->
}
],
provider_id="providerID",
session_id="ses",
message_id="msg",
mode="mode",
)
Expand All @@ -700,7 +693,6 @@ async def test_raw_response_chat(self, async_client: AsyncOpencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)

assert response.is_closed is True
Expand All @@ -721,7 +713,6 @@ async def test_streaming_response_chat(self, async_client: AsyncOpencode) -> Non
}
],
provider_id="providerID",
session_id="ses",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -745,7 +736,6 @@ async def test_path_params_chat(self, async_client: AsyncOpencode) -> None:
}
],
provider_id="providerID",
session_id="ses",
)

@pytest.mark.skip()
Expand Down