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.

hotfix: fix multiple case match syntax (#24204)

NeatGuyCoding870e3daa9516
diff --git a/api/core/llm_generator/llm_generator.py b/api/core/llm_generator/llm_generator.py
index 503f8e3e89b..8c1d1716882 100644
--- a/api/core/llm_generator/llm_generator.py
+++ b/api/core/llm_generator/llm_generator.py
@@ -532,7 +532,7 @@ class LLMGenerator:
model=model_config.get("name", ""),
)
match node_type:
- case "llm", "agent":
+ case "llm" | "agent":
system_prompt = LLM_MODIFY_PROMPT_SYSTEM
case "code":
system_prompt = LLM_MODIFY_CODE_SYSTEM