langchain
49ca0271 - Improved query, print & exception handling in REPL Tool (#4997)

Commit
2 years ago
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>
Author
Parents
Loading