From 9b8adc5d6cf54ecf60ea427994b0ddb7067ef31c Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Tue, 13 Jun 2023 22:38:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20plugin=20mode=20bug=EF=BC=9BOptimize=20th?= =?UTF-8?q?e=20parsing=20logic=20for=20model=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pilot/out_parser/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/out_parser/base.py b/pilot/out_parser/base.py index 709572d17..a32ef736b 100644 --- a/pilot/out_parser/base.py +++ b/pilot/out_parser/base.py @@ -155,7 +155,7 @@ class BaseOutputParser(ABC): cleaned_output = cleaned_output[: -len("```")] cleaned_output = cleaned_output.strip() if not cleaned_output.startswith("{") or not cleaned_output.endswith("}"): - logger.info("illegal json processing") + logger.info("illegal json processing:\n" + cleaned_output) cleaned_output = self.__extract_json(cleaned_output) cleaned_output = ( cleaned_output.strip()