Fix errmsg: cast dict to str (#172)

This commit is contained in:
liujiangning30
2024-03-20 14:27:04 +08:00
committed by GitHub
parent 5f55e12736
commit 466d7aa24d

View File

@@ -182,7 +182,7 @@ class Internlm2Protocol:
if action_return.state == ActionStatusCode.SUCCESS:
response = action_return.format_result()
else:
response = action_return.errmsg
response = str(action_return.errmsg)
content = self.execute['begin'] + response + self.execute['end']
if self.execute.get('fallback_role'):
return dict(