From 719407d82cfbf3b2cad3672a390ee0606fd9bc40 Mon Sep 17 00:00:00 2001 From: yi-ge Date: Mon, 20 Apr 2026 00:42:35 +0800 Subject: [PATCH] feat: add per-provider tombstones whitelist for explicit model deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引入 tombstones 字段用于区分"主动删除"和"数据缺失"两种语义。 当合并策略(新版本客户端)遇到 preset 缺失的本地 preset-source 模型时: - 若 modelName 在 tombstones 白名单 → 真删除 - 若不在白名单 → 保留并标 extra.deprecated: true(软降级) 本次添加 tombstones 的场景: - internal-testing: MiniMax-M2.7 / MiniMax-M2.5(改为只保留 highspeed 版本) - zhipu: embedding-3(已拆到独立的 zhipu-embedding provider) user-added / synced / ollama-discovery 来源始终不受 tombstones 影响。 bump presetDataVersion 22 -> 23 --- compute/providers/internal-testing.json | 4 ++++ compute/providers/zhipu.json | 3 +++ manifest.json | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/compute/providers/internal-testing.json b/compute/providers/internal-testing.json index 71ff850..75424c4 100644 --- a/compute/providers/internal-testing.json +++ b/compute/providers/internal-testing.json @@ -12,6 +12,10 @@ "services": [ "chat" ], + "tombstones": [ + "MiniMax-M2.7", + "MiniMax-M2.5" + ], "models": [ { "modelName": "MiniMax-M2.7-highspeed", diff --git a/compute/providers/zhipu.json b/compute/providers/zhipu.json index 2598255..f0197a1 100644 --- a/compute/providers/zhipu.json +++ b/compute/providers/zhipu.json @@ -14,6 +14,9 @@ "vision", "reasoning" ], + "tombstones": [ + "embedding-3" + ], "models": [ { "modelName": "glm-5", diff --git a/manifest.json b/manifest.json index 6639687..e5a7f89 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0.0", - "presetDataVersion": 22, - "updatedAt": "2026-04-19", + "presetDataVersion": 23, + "updatedAt": "2026-04-20", "description": "DesireCore 官方配置中心" }