Sfoglia il codice sorgente

fix: cot gent duplicate messages (#4470)

tags/0.6.9
Yeuoly 1 anno fa
parent
commit
c2a8fa91b1
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/core/agent/cot_agent_runner.py

+ 1
- 1
api/core/agent/cot_agent_runner.py Vedi File

@@ -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…
Annulla
Salva