v0.16.12: 删除 8 个非必要工具 — get_file_info/diff_files/replace_in_files/random/uuid/json_format/hash/datetime

This commit is contained in:
紫影233
2026-07-16 17:47:02 +08:00
parent 45b50e4dc7
commit 94e0a36981
15 changed files with 301 additions and 693 deletions
-4
View File
@@ -319,10 +319,6 @@ export function scoreMessageImportance(msg: OllamaMessage): number {
if (/read_file|list_directory|tree/.test(msg.tool_name)) {
score += 1;
}
// 时间/计算类工具结果:低价值(时效性强,很快过期)
if (/datetime|random|uuid|hash/.test(msg.tool_name)) {
score -= 2;
}
}
// 长度加分:长消息通常包含更多信息