Tuchuanhuhuhu commited on
Commit
214f3ef
·
1 Parent(s): 71ef544

打印川虎助理的报错

Browse files
Files changed (1) hide show
  1. modules/models/ChuanhuAgent.py +2 -0
modules/models/ChuanhuAgent.py CHANGED
@@ -174,6 +174,8 @@ class ChuanhuAgent_Client(BaseLLMModel):
174
  try:
175
  reply = agent.run(input=f"{question} Reply in 简体中文")
176
  except Exception as e:
 
 
177
  reply = str(e)
178
  it.callback(reply)
179
  it.finish()
 
174
  try:
175
  reply = agent.run(input=f"{question} Reply in 简体中文")
176
  except Exception as e:
177
+ import traceback
178
+ traceback.print_exc()
179
  reply = str(e)
180
  it.callback(reply)
181
  it.finish()