浏览代码

refine the warning message for rewrite component (#2429)

### What problem does this PR solve?


### Type of change

- [x] Performance Improvement
tags/v0.11.0
Kevin Hu 1年前
父节点
当前提交
d3262ca378
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      agent/component/rewrite.py

+ 1
- 1
agent/component/rewrite.py 查看文件

@@ -54,7 +54,7 @@ class RewriteQuestion(Generate, ABC):
setattr(self, "_loop", 0)
if self._loop >= self._param.loop:
self._loop = 0
raise Exception("Maximum loop time exceeds. Can't find relevant information.")
raise Exception("Sorry! Nothing relevant found.")
self._loop += 1
q = "Question: "
for r, c in self._canvas.history[::-1]:

正在加载...
取消
保存