DB-GPT [BUG][ChatExcel] ChatExcel 'sql'在赋值之前被引用

yhqotfr8  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(18)

描述bug

在使用chatExcel时出现错误,

Traceback (most recent call last):
  File "/home/magic/workspace/github/eosphoros-ai/DB-GPT/pilot/scene/base_chat.py", line 173, in nostream_call
    self.prompt_template.output_parser.parse_prompt_response(
  File "/home/magic/workspace/github/eosphoros-ai/DB-GPT/pilot/scene/chat_data/chat_excel/excel_analyze/out_parser.py", line 38, in parse_prompt_response
    return ExcelAnalyzeResponse(sql, thoughts, display)
UnboundLocalError: local variable 'sql' referenced before assignment

桌面(请填写以下信息):

  • 操作系统:Ubuntu 20.02
  • 浏览器:Chroma
  • LLM模型:vicuna-13b-v1.5
oxiaedzo

oxiaedzo1#

这个问题已经被标记为 stale,因为已经超过30天没有任何活动。

相关问题