mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-20 17:09:00 +00:00
fix: guanaco output
This commit is contained in:
@@ -57,7 +57,7 @@ class BaseOutputParser(ABC):
|
|||||||
output = data["text"][skip_echo_len:].strip()
|
output = data["text"][skip_echo_len:].strip()
|
||||||
elif "guanaco" in CFG.LLM_MODEL:
|
elif "guanaco" in CFG.LLM_MODEL:
|
||||||
# output = data["text"][skip_echo_len + 14:].replace("<s>", "").strip()
|
# output = data["text"][skip_echo_len + 14:].replace("<s>", "").strip()
|
||||||
output = data["text"][skip_echo_len:].replace("<s>", "").strip()
|
output = data["text"][skip_echo_len + 2:].replace("<s>", "").strip()
|
||||||
else:
|
else:
|
||||||
output = data["text"].strip()
|
output = data["text"].strip()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user