fix(workflow): adapt node ID regex to support symbols

This commit is contained in:
mengyonghao
2025-12-31 12:06:50 +08:00
parent 0e5397bcf4
commit e08e761319
2 changed files with 1 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ class EndNode(BaseNode):
引用的节点 ID 列表
"""
# 匹配 {{node_id.xxx}} 格式
pattern = r'\{\{([a-zA-Z0-9_]+)\.[a-zA-Z0-9_]+\}\}'
pattern = r'\{\{([a-zA-Z0-9_-]+)\.[a-zA-Z0-9_]+\}\}'
matches = re.findall(pattern, template)
return list(set(matches)) # 去重

View File

@@ -41,8 +41,6 @@ nodes:
- 使用友好、礼貌的语气
- 适当使用格式化(如列表、段落)提高可读性
- role: user
content: "{{sys.message}}"
model_id: null
temperature: 0.7