fix:merge tuyang branch and knowledge chat

1.fix knowledge chat
2.merge tuyang branch
This commit is contained in:
aries_ckt
2023-06-29 20:03:39 +08:00
22 changed files with 200 additions and 95 deletions

View File

@@ -95,7 +95,7 @@ class BaseOutputParser(ABC):
yield output
def parse_model_nostream_resp(self, response, sep: str):
text = response.text.strip()
text = response.strip()
text = text.rstrip()
text = text.strip(b"\x00".decode())
respObj_ex = json.loads(text)