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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: prompt template parantheses select error (#244)
John Wang7f48fadd4110
diff --git a/api/core/prompt/prompt_builder.py b/api/core/prompt/prompt_builder.pyindex cbe41576f1c..164bf6375be 100644--- a/api/core/prompt/prompt_builder.py+++ b/api/core/prompt/prompt_builder.py@@ -32,6 +32,6 @@ class PromptBuilder:@classmethoddef process_template(cls, template: str):- processed_template = re.sub(r'\{(.+?)\}', r'\1', template)- processed_template = re.sub(r'\{\{(.+?)\}\}', r'{\1}', processed_template)+ processed_template = re.sub(r'\{([a-zA-Z_]\w+?)\}', r'\1', template)+ processed_template = re.sub(r'\{\{([a-zA-Z_]\w+?)\}\}', r'{\1}', processed_template)return processed_template