Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: react router agent direct output (#904)

takatostedb06f6aed00
diff --git a/api/core/completion.py b/api/core/completion.py
index 28d0cec8d57..4614f8084dd 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