feat: add per-provider tombstones whitelist for explicit model deletion

引入 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
This commit is contained in:
2026-04-20 00:42:35 +08:00
parent 2ed86a9561
commit 719407d82c
3 changed files with 9 additions and 2 deletions

View File

@@ -12,6 +12,10 @@
"services": [
"chat"
],
"tombstones": [
"MiniMax-M2.7",
"MiniMax-M2.5"
],
"models": [
{
"modelName": "MiniMax-M2.7-highspeed",

View File

@@ -14,6 +14,9 @@
"vision",
"reasoning"
],
"tombstones": [
"embedding-3"
],
"models": [
{
"modelName": "glm-5",

View File

@@ -1,6 +1,6 @@
{
"version": "1.0.0",
"presetDataVersion": 22,
"updatedAt": "2026-04-19",
"presetDataVersion": 23,
"updatedAt": "2026-04-20",
"description": "DesireCore 官方配置中心"
}