We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa9938 commit e3cad49Copy full SHA for e3cad49
portkey_ai/api_resources/apis/post.py
@@ -155,10 +155,16 @@ async def create(
155
body: Optional[Dict[str, Any]] = {},
156
headers: Optional[Dict[str, str]] = {},
157
cast_to: Optional[Any] = None,
158
+ **kwargs,
159
):
160
+ files = kwargs.pop("files", None)
161
+ headers = headers or kwargs.pop("headers", {})
162
+ body = body or kwargs
163
+
164
return await self._post(
165
path=path,
166
body=body,
167
+ files=files,
168
params={},
169
headers=headers,
170
cast_to=cast_to,
0 commit comments