mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:09:02 +08:00
fix: react router agent direct output (#904)
This commit is contained in:
parent
6ca3bcbcfd
commit
edb06f6aed
@ -126,7 +126,7 @@ class Completion:
|
|||||||
# the output of the agent can be used directly as the main output content without calling LLM again
|
# the output of the agent can be used directly as the main output content without calling LLM again
|
||||||
fake_response = None
|
fake_response = None
|
||||||
if not app_model_config.pre_prompt and agent_execute_result and agent_execute_result.output \
|
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
|
fake_response = agent_execute_result.output
|
||||||
|
|
||||||
# get llm prompt
|
# get llm prompt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user