langchain
5fdaa95e - Strip surrounding quotes from requests tool URLs. (#3563)

Commit
2 years ago
Strip surrounding quotes from requests tool URLs. (#3563) Often an LLM will output a requests tool input argument surrounded by single quotes. This triggers an exception in the requests library. Here, we add a simple clean url function that strips any leading and trailing single and double quotes before passing the URL to the underlying requests library. Co-authored-by: James Brotchie <brotchie@google.com>
Author
Parents
Loading