mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-08-31 02:04:19 +00:00
feat(api): update via SDK Studio
This commit is contained in:
parent
4169cc336f
commit
06a27a0271
2 changed files with 5 additions and 8 deletions
11
README.md
11
README.md
|
|
@ -15,13 +15,10 @@ The REST API documentation can be found on [opencode.ai](https://opencode.ai/doc
|
|||
## Installation
|
||||
|
||||
```sh
|
||||
# install from the production repo
|
||||
pip install git+ssh://git@github.com/sst/opencode-sdk-python.git
|
||||
# install from PyPI
|
||||
pip install --pre opencode
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install --pre opencode`
|
||||
|
||||
## Usage
|
||||
|
||||
The full API of this library can be found in [api.md](api.md).
|
||||
|
|
@ -61,8 +58,8 @@ By default, the async client uses `httpx` for HTTP requests. However, for improv
|
|||
You can enable this by installing `aiohttp`:
|
||||
|
||||
```sh
|
||||
# install from the production repo
|
||||
pip install 'opencode[aiohttp] @ git+ssh://git@github.com/sst/opencode-sdk-python.git'
|
||||
# install from PyPI
|
||||
pip install --pre opencode[aiohttp]
|
||||
```
|
||||
|
||||
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue