瀏覽代碼

fix: cot gent duplicate messages (#4470)

tags/0.6.9
Yeuoly 1 年之前
父節點
當前提交
c2a8fa91b1
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/agent/cot_agent_runner.py

+ 1
- 1
api/core/agent/cot_agent_runner.py 查看文件

@@ -189,7 +189,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):

if not scratchpad.action:
# failed to extract action, return final answer directly
final_answer = scratchpad.agent_response or ''
final_answer = ''
else:
if scratchpad.action.action_name.lower() == "final answer":
# action is final answer, return final answer directly

Loading…
取消
儲存