Fix message formatting

This commit is contained in:
Shuguang Chen 2025-04-04 10:51:37 -07:00
parent cbd181a092
commit d8dabfeec0

View file

@ -192,7 +192,7 @@ class ArchFunctionHandler(ArchBaseHandler):
content = content[4:].strip()
content = self._fix_json_string(content)
response_dict["raw_response"] = f"```json\n{content}```"
response_dict["raw_response"] = f"```json\n{content}\n```"
model_response = json.loads(content)
response_dict["response"] = model_response.get("response", "")