Pārlūkot izejas kodu

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

tags/1.3.1
cooper.wu pirms 6 mēnešiem
vecāks
revīzija
7a62202392
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      api/core/tools/tool_engine.py

+ 1
- 1
api/core/tools/tool_engine.py Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt