Skip to content

Commit e3cad49

Browse files
committed
fix: added correct signature for postMethod
1 parent daa9938 commit e3cad49

File tree

1 file changed

+6
-0
lines changed
  • portkey_ai/api_resources/apis

1 file changed

+6
-0
lines changed

portkey_ai/api_resources/apis/post.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,16 @@ async def create(
155155
body: Optional[Dict[str, Any]] = {},
156156
headers: Optional[Dict[str, str]] = {},
157157
cast_to: Optional[Any] = None,
158+
**kwargs,
158159
):
160+
files = kwargs.pop("files", None)
161+
headers = headers or kwargs.pop("headers", {})
162+
body = body or kwargs
163+
159164
return await self._post(
160165
path=path,
161166
body=body,
167+
files=files,
162168
params={},
163169
headers=headers,
164170
cast_to=cast_to,

0 commit comments

Comments
 (0)