Unverified Commit 556d1d03 authored by takatost's avatar takatost Committed by GitHub

fix variable invalid when key only one character (#2377)

parent 1ebf7409
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment