Repository navigation
Add raw/streaming responses, aiohttp transport, OPENCODE_LOG and client.copy - #21
Merged
Merged
Conversation
DefaultAioHttpClient wraps httpx-aiohttp behind a new 'aiohttp' extra and is passed as http_client=. Tests run it against a real aiohttp server for requests, SSE streaming, retries and timeouts, and skip without the extra.
…thods Every generated resource (sync and async) gets with_raw_response, returning an APIResponse with headers, status and parse(), and with_streaming_response, a context manager that leaves the body unread. List methods give the first page's response; event streams are never read eagerly. Also adds client.get/post/put/ patch/delete for endpoints without a method, and README sections for raw responses, custom requests and the installed version.
shrijayan
force-pushed
the
feat/sdk-parity
branch
from
October 22, 2026 14:05
1189f3a to
7540fdf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes feature gaps with the OpenAI/Anthropic Python SDKs.
.with_raw_response/.with_streaming_responseon every resource (sync and async), plusclient.get/post/put/patch/deletefor endpoints without a method.DefaultAioHttpClient: optional aiohttp transport forAsyncOpencodevia theaiohttpextra.OPENCODE_LOG=debug|infoconfigures theopencodelogger.client.copy(...)alias forwith_options, with docs on the shared connection pool.Not added:
_request_idon responses, since OpenCode 2.1.2 sends no request ID header.Checked locally: ruff, ruff format, pyright, mypy,
codegen --check, 463 tests,mkdocs build --strict.