mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-05-17 04:12:43 +00:00
chore(internal): codegen related update
This commit is contained in:
parent
2af822c637
commit
5916dbc337
1 changed files with 8 additions and 2 deletions
|
|
@ -1247,9 +1247,12 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
*,
|
||||
cast_to: Type[ResponseT],
|
||||
body: Body | None = None,
|
||||
files: RequestFiles | None = None,
|
||||
options: RequestOptions = {},
|
||||
) -> ResponseT:
|
||||
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
|
||||
opts = FinalRequestOptions.construct(
|
||||
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
|
||||
)
|
||||
return self.request(cast_to, opts)
|
||||
|
||||
def put(
|
||||
|
|
@ -1767,9 +1770,12 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
*,
|
||||
cast_to: Type[ResponseT],
|
||||
body: Body | None = None,
|
||||
files: RequestFiles | None = None,
|
||||
options: RequestOptions = {},
|
||||
) -> ResponseT:
|
||||
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
|
||||
opts = FinalRequestOptions.construct(
|
||||
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
|
||||
)
|
||||
return await self.request(cast_to, opts)
|
||||
|
||||
async def put(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue