langflow/src/backend
Rodrigo Nader 166b0a07da
feat: Add cURL command unescaping for API request parsing (#7026)
* feat: Add cURL command unescaping for API request parsing

Enhance APIRequestComponent with a new _unescape_curl method to handle:
- JSON string encoded curl commands
- Double and single escaped quotes
- Robust error handling for curl command parsing

The new method improves flexibility when parsing curl commands with various escape sequences.

* [autofix.ci] apply automated fixes

* refactor: Simplify cURL command unescaping logic in APIRequestComponent

Updated the unescaping logic to improve readability and maintainability. The method now directly attempts to decode JSON strings and handles escaped quotes more efficiently, with enhanced error handling for various exceptions.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* fix pokedex agent

* Please provide the output of 'git diff --staged' command.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-03-21 12:47:23 +00:00
..
base feat: Add cURL command unescaping for API request parsing (#7026) 2025-03-21 12:47:23 +00:00
langflow/version ref: Some ruff fixes from preview (#5420) 2024-12-28 21:25:35 +00:00
tests feat: enhance APIRequestComponent with new output methods (#7148) 2025-03-20 22:46:19 +00:00
.gitignore Changes default location for the database and adds the option to use the previous behavior (#1907) 2024-05-15 20:41:01 -03:00
Dockerfile fix: Add libpq-dev and gcc dependencies to backend Dockerfile (#7136) 2025-03-18 18:50:59 +00:00