使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
注册
登录
OpenSource
/
dify
关注
4
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
152
百科
动态
浏览代码
fix variable invalid when key only one character (
#2377
)
tags/0.5.4
takatost
1年前
父节点
1ebf740908
当前提交
556d1d0390
没有帐户链接到提交者的电子邮件
共有
1 个文件被更改
,包括
1 次插入
和
1 次删除
分列视图
显示文件统计
1
1
api/core/prompt/prompt_template.py
+ 1
- 1
api/core/prompt/prompt_template.py
查看文件
@@ -1,6 +1,6 @@
import re
REGEX = re.compile(r"\{\{([a-zA-Z_][a-zA-Z0-9_]{
1
,29}|#histories#|#query#|#context#)\}\}")
REGEX = re.compile(r"\{\{([a-zA-Z_][a-zA-Z0-9_]{
0
,29}|#histories#|#query#|#context#)\}\}")
class PromptTemplateParser:
撰写
预览
正在加载...
取消
保存