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

这个提交包含在:
Your Name
2023-04-22 15:06:54 +08:00
父节点 3236fcca21
当前提交 1139d395f2
共有 4 个文件被更改,包括 23 次插入26 次删除

查看文件

@@ -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("^")]