la-machina-engine 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8296,7 +8296,7 @@ function createApiCallTool(opts) {
8296
8296
  bodyText = input.body;
8297
8297
  defaultContentType = "text/plain";
8298
8298
  } else {
8299
- bodyText = JSON.stringify(input.body);
8299
+ bodyText = typeof input.body === "string" ? input.body : JSON.stringify(input.body);
8300
8300
  defaultContentType = "application/json";
8301
8301
  }
8302
8302
  const cap = svc.maxBodyBytes ?? DEFAULT_MAX_BODY_BYTES;