Преглед изворни кода

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

tags/0.5.4
takatost пре 1 година
родитељ
комит
556d1d0390
No account linked to committer's email address
1 измењених фајлова са 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:

Loading…
Откажи
Сачувај