From f7fe66b5e560aec07513d07273931cbd36d34550 Mon Sep 17 00:00:00 2001 From: csunny Date: Sun, 4 Jun 2023 20:15:27 +0800 Subject: [PATCH] fix: guanaco output --- 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 0538aa54c..bb2d0b2b2 100644 --- a/pilot/out_parser/base.py +++ b/pilot/out_parser/base.py @@ -57,7 +57,7 @@ class BaseOutputParser(ABC): output = data["text"][skip_echo_len:].strip() elif "guanaco" in CFG.LLM_MODEL: # output = data["text"][skip_echo_len + 14:].replace("", "").strip() - output = data["text"][skip_echo_len:].replace("", "").strip() + output = data["text"][skip_echo_len + 2:].replace("", "").strip() else: output = data["text"].strip()