将高级参数输入通用化(默认隐藏),应用到所有的下拉菜单函数插件中

This commit is contained in:
Your Name
2023-04-22 15:06:54 +08:00
parent 3236fcca21
commit 1139d395f2
4 changed files with 23 additions and 26 deletions

View File

@@ -268,7 +268,7 @@ def 解析一个CSharp项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, s
@CatchException
def 解析任意code项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
txt_pattern = plugin_kwargs.get("txt_pattern")
txt_pattern = plugin_kwargs.get("advanced_arg")
txt_pattern = txt_pattern.replace("", ",")
# 将要匹配的模式(例如: *.c, *.cpp, *.py, config.toml)
pattern_include = [_.lstrip(" ,").rstrip(" ,") for _ in txt_pattern.split(",") if _ != "" and not _.strip().startswith("^")]