소스 검색

fix: cot agent

Yeuoly 5 달 전
부모
커밋
89af726985
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      api/core/agent/cot_agent_runner.py

+ 1 - 2
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