From 89af726985c5ae3fda7a95b4389ba29a767e94d2 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Fri, 29 Nov 2024 16:48:39 +0800 Subject: [PATCH] fix: cot agent --- api/core/agent/cot_agent_runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/core/agent/cot_agent_runner.py b/api/core/agent/cot_agent_runner.py index 1e62b4308d..efcc89f555 100644 --- a/api/core/agent/cot_agent_runner.py +++ b/api/core/agent/cot_agent_runner.py @@ -59,8 +59,7 @@ class CotAgentRunner(BaseAgentRunner, ABC): # init instruction inputs = inputs or {} - assert app_config.prompt_template.simple_prompt_template - instruction = app_config.prompt_template.simple_prompt_template + instruction = app_config.prompt_template.simple_prompt_template or "" self._instruction = self._fill_in_inputs_from_external_data_tools(instruction, inputs) iteration_step = 1