From 9e57be4b5c205242373826b70cec8b871a61cc21 Mon Sep 17 00:00:00 2001 From: mwinterde <60154509+mwinterde@users.noreply.github.com> Date: Thu, 25 May 2023 15:59:31 +0200 Subject: [PATCH] Fix typo in docstring of RetryWithErrorOutputParser (#5244) --- langchain/output_parsers/retry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/output_parsers/retry.py b/langchain/output_parsers/retry.py index bbbe82d94c1..7d9a797379c 100644 --- a/langchain/output_parsers/retry.py +++ b/langchain/output_parsers/retry.py @@ -85,7 +85,7 @@ class RetryWithErrorOutputParser(BaseOutputParser[T]): """Wraps a parser and tries to fix parsing errors. Does this by passing the original prompt, the completion, AND the error - that was raised to another language and telling it that the completion + that was raised to another language model and telling it that the completion did not work, and raised the given error. Differs from RetryOutputParser in that this implementation provides the error that was raised back to the LLM, which in theory should give it more information on how to fix it.