修正moss和chatglm的环境依赖

This commit is contained in:
fuqingxu
2023-05-08 20:06:41 +08:00
parent a554b7f0e4
commit 84fc8647f7
2 changed files with 4 additions and 8 deletions

View File

@@ -68,7 +68,8 @@ class GetGLMHandle(Process):
# command = self.child.recv()
# if command == '[Terminate]': break
except:
self.child.send('[Local Message] Call ChatGLM fail.')
from toolbox import trimmed_format_exc
self.child.send('[Local Message] Call ChatGLM fail.' + '\n```\n' + trimmed_format_exc() + '\n```\n')
# 请求处理结束,开始下一个循环
self.child.send('[Finish]')