Procházet zdrojové kódy

fix: when cot_agent call tool like searxng lost some response content (#16781)

tags/1.3.1
cooper.wu před 6 měsíci
rodič
revize
7a62202392
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      api/core/tools/tool_engine.py

+ 1
- 1
api/core/tools/tool_engine.py Zobrazit soubor

@@ -246,7 +246,7 @@ class ToolEngine:
+ "you do not need to create it, just tell the user to check it now."
)
elif response.type == ToolInvokeMessage.MessageType.JSON:
result = json.dumps(
result += json.dumps(
cast(ToolInvokeMessage.JsonMessage, response.message).json_object, ensure_ascii=False
)
else:

Načítá se…
Zrušit
Uložit