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.2"
".": "0.1.0-alpha.3"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 16
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-3c79948402e96d2aae6e46095db2cf80759750d1b042d6f91281a72c415b14de.yml
openapi_spec_hash: f9c2fc5988f0a30397929995c2be2c85
config_hash: d4c4c71d9a092267df2d4ab61fd89e63
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-42c787cc277f295f28cd81a67f7b746cb4d47c3cd4c8a3fb521b03407649ebdd.yml
openapi_spec_hash: 8f514f7881cf54e0aa65a23366df1af0
config_hash: 61e8ad6b1bd35aec38a7b20a2570b967
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

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

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

### Features

* **api:** update via SDK Studio ([9ab5a57](https://github.com/sst/opencode-sdk-python/commit/9ab5a570a78b28aa0dfbad5e6302f930f2011fed))
* **api:** update via SDK Studio ([3e426e4](https://github.com/sst/opencode-sdk-python/commit/3e426e4328bd876b3bc5123e20b9a1b69dd1756d))

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

Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/sst/opencode-sdk-python/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
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.2"
version = "0.1.0-alpha.3"
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.2" # x-release-please-version
__version__ = "0.1.0-alpha.3" # x-release-please-version
8 changes: 4 additions & 4 deletions src/opencode_ai/resources/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def chat(
model_id: str,
parts: Iterable[MessagePartParam],
provider_id: str,
session_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -174,6 +173,8 @@ def chat(
Create and send a new message to a session

Args:
id: Session ID

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -191,7 +192,6 @@ def chat(
"model_id": model_id,
"parts": parts,
"provider_id": provider_id,
"session_id": session_id,
},
session_chat_params.SessionChatParams,
),
Expand Down Expand Up @@ -522,7 +522,6 @@ async def chat(
model_id: str,
parts: Iterable[MessagePartParam],
provider_id: str,
session_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -534,6 +533,8 @@ async def chat(
Create and send a new message to a session

Args:
id: Session ID

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -551,7 +552,6 @@ async def chat(
"model_id": model_id,
"parts": parts,
"provider_id": provider_id,
"session_id": session_id,
},
session_chat_params.SessionChatParams,
),
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 @@ -17,5 +17,3 @@ class SessionChatParams(TypedDict, total=False):
parts: Required[Iterable[MessagePartParam]]

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

session_id: Required[Annotated[str, PropertyInfo(alias="sessionID")]]
8 changes: 0 additions & 8 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="sessionID",
)
assert_matches_type(Message, session, path=["response"])

Expand All @@ -196,7 +195,6 @@ def test_raw_response_chat(self, client: Opencode) -> None:
}
],
provider_id="providerID",
session_id="sessionID",
)

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

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

Expand All @@ -646,7 +641,6 @@ async def test_raw_response_chat(self, async_client: AsyncOpencode) -> None:
}
],
provider_id="providerID",
session_id="sessionID",
)

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

@pytest.mark.skip()
Expand Down