langchain/tests/unit_tests/tools/python
Deepak S V 49ca02711e
Improved query, print & exception handling in REPL Tool (#4997)
Update to pull request https://github.com/hwchase17/langchain/pull/3215

Summary:
1) Improved the sanitization of query (using regex), by removing python
command (since gpt-3.5-turbo sometimes assumes python console as a
terminal, and runs python command first which causes error). Also
sometimes 1 line python codes contain single backticks.
2) Added 7 new test cases.

For more details, view the previous pull request.

---------

Co-authored-by: Deepak S V <svdeepak99@users.noreply.github.com>
2023-05-22 13:43:44 +00:00
..
__init__.py Fix Python RePL Tool (#4137) 2023-05-04 20:31:16 -07:00
test_python.py Improved query, print & exception handling in REPL Tool (#4997) 2023-05-22 13:43:44 +00:00