fix variable invalid when key only one character (#2377)
This commit is contained in:
parent
1ebf740908
commit
556d1d0390
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import re
|
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:
|
class PromptTemplateParser:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue