Commit c6d90d06 authored by 段廷瑞's avatar 段廷瑞

pref: 打包优化,包含智能体内置知识

parent 954b2011
No preview for this file type
......@@ -137,8 +137,16 @@ namespace Tools.UI.sys
/// <returns></returns>
private bool IsFileIgnore(FileInfo f)
{
// Agent 下的默认资源需要随程序发布;其中的 JSON 和无扩展名文件也不能被通用规则过滤。
if (f.FullName.Contains("\\Agent\\dialect\\")
|| f.FullName.Contains("\\Agent\\industry\\")
|| f.FullName.Contains("\\Agent\\prompts\\"))
{
return false;
}
return f.FullName.Contains("\\AutoUpdate\\") //剔除自动更新文件
|| f.FullName.Contains("\\Agent\\") //剔除Agent本地数据目录(配置、历史、索引、提示词)
|| f.FullName.Contains("\\Agent\\") //剔除Agent本地数据目录(配置、历史、索引、输出等)
|| f.FullName.Contains(Utils.LogPath) //日志、
|| f.FullName.Contains(Utils.TempPath) //临时文件目录
|| f.FullName.Contains(Utils.SavePath) // 系统预设的用户本地文件目录,需要排除
......
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