fix: json body

This commit is contained in:
Alex
2025-05-05 00:08:56 +01:00
parent ae700e8f3a
commit cf333873fd

View File

@@ -25,8 +25,8 @@ class APITool(Tool):
def _make_api_call(self, url, method, headers, query_params, body):
if query_params:
url = f"{url}?{requests.compat.urlencode(query_params)}"
if isinstance(body, dict):
body = json.dumps(body)
# if isinstance(body, dict):
# body = json.dumps(body)
try:
print(f"Making API call: {method} {url} with body: {body}")
if body == "{}":