mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-01-29 21:49:35 +00:00
fix:merge tuyang branch and knowledge chat
1.fix knowledge chat 2.merge tuyang branch
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user