update skyvern client (#3733)
This commit is contained in:
@@ -24,7 +24,7 @@ class BaseClientWrapper:
|
||||
headers: typing.Dict[str, str] = {
|
||||
"X-Fern-Language": "Python",
|
||||
"X-Fern-SDK-Name": "skyvern",
|
||||
"X-Fern-SDK-Version": "0.2.6",
|
||||
"X-Fern-SDK-Version": "0.2.18",
|
||||
}
|
||||
if self._api_key is not None:
|
||||
headers["x-api-key"] = self._api_key
|
||||
|
||||
@@ -371,16 +371,6 @@ class AsyncHttpClient:
|
||||
|
||||
json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit)
|
||||
|
||||
# If omit/pruning removed everything, still send {} for methods that commonly expect a body.
|
||||
if (
|
||||
json_body is None
|
||||
and data_body is None
|
||||
and content is None
|
||||
and files is None
|
||||
and method.upper() in {"POST", "PUT", "PATCH"}
|
||||
):
|
||||
json_body = {}
|
||||
|
||||
# Add the input to each of these and do None-safety checks
|
||||
response = await self.httpx_client.request(
|
||||
method=method,
|
||||
|
||||
Reference in New Issue
Block a user