From a4493b747279dbe218cc22564538280bfb0b61c6 Mon Sep 17 00:00:00 2001 From: Data Hamal <5611929+huangzhuxing@users.noreply.github.com> Date: Wed, 28 Jun 2023 00:52:45 +0800 Subject: [PATCH] Update base.py fix function __extract_json slef --> self --- 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 96ddf64a0..bfe95adda 100644 --- a/pilot/out_parser/base.py +++ b/pilot/out_parser/base.py @@ -120,7 +120,7 @@ class BaseOutputParser(ABC): else: raise ValueError("Model server error!code=" + respObj_ex["error_code"]) - def __extract_json(slef, s): + def __extract_json(self, s): i = s.index("{") count = 1 # 当前所在嵌套深度,即还没闭合的'{'个数 for j, c in enumerate(s[i + 1 :], start=i + 1):