From edb06f6aed00d71ae9942cfaa6062ac3ab3579d6 Mon Sep 17 00:00:00 2001 From: takatost Date: Fri, 18 Aug 2023 14:31:20 +0800 Subject: [PATCH] fix: react router agent direct output (#904) --- api/core/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/completion.py b/api/core/completion.py index 28d0cec8d5..4614f8084d 100644 --- a/api/core/completion.py +++ b/api/core/completion.py @@ -126,7 +126,7 @@ class Completion: # the output of the agent can be used directly as the main output content without calling LLM again fake_response = None if not app_model_config.pre_prompt and agent_execute_result and agent_execute_result.output \ - and agent_execute_result.strategy != PlanningStrategy.ROUTER: + and agent_execute_result.strategy not in [PlanningStrategy.ROUTER, PlanningStrategy.REACT_ROUTER]: fake_response = agent_execute_result.output # get llm prompt