Skip to content

Commit 33d2306

Browse files
fix: use async_to_httpx_files in patch method
1 parent 8ffa56c commit 33d2306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gradient/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ async def patch(
18121812
options: RequestOptions = {},
18131813
) -> ResponseT:
18141814
opts = FinalRequestOptions.construct(
1815-
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1815+
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
18161816
)
18171817
return await self.request(cast_to, opts)
18181818

0 commit comments

Comments
 (0)