mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-09-05 20:13:40 +08:00
feat(compute): 下线 Opus 4.8 / Opus 4.7 / Sonnet 4.6,presetDataVersion → 86 (#72)
Anthropic provider 保留 Fable 5 / Opus 5 / Sonnet 5 / Haiku 4.5;Claude 订阅 provider 保留 Fable 5 / Opus 5 / Sonnet 5 / Haiku 4.5。 三个模型同时写入 provider.tombstones —— 仅从 models 数组删除只会触发 deprecated 软降级(保留本地数据),写入 tombstones 才是真删除,且客户端 resolver 的 resolveMappingModel() 只对 tombstone 模型执行「回退到同 serviceType 的其他可用 模型」,未 tombstone 的缺失模型会原样透传。因此写 tombstones 才能让存量会话平滑 迁移到 Opus 5,而不是继续指向一个已消失的模型名。 model-specs/anthropic.json 中三者的规格条目保留:规格库按 model_name 匹配任意 上游(含 OpenRouter 风格 vendor 前缀),与 provider 清单解耦——该文件本来就有 claude-sonnet-4-5 这类无 provider 条目的规格。删除会让经其他网关访问这些模型的 用户丢失上下文窗口/能力元数据。 用户侧 user-added / synced / ollama-discovery 来源的同名模型不受 tombstones 影响。
This commit is contained in:
@@ -92,39 +92,6 @@
|
||||
},
|
||||
"source": "preset"
|
||||
},
|
||||
{
|
||||
"modelName": "claude-opus-4-8",
|
||||
"displayName": "Claude Opus 4.8",
|
||||
"serviceType": [
|
||||
"chat"
|
||||
],
|
||||
"description": "Claude 订阅额度计费,Opus 级复杂智能体编码与企业任务模型,1M 上下文",
|
||||
"contextWindow": 1000000,
|
||||
"maxOutputTokens": 128000,
|
||||
"capabilities": [
|
||||
"chat",
|
||||
"reasoning",
|
||||
"code",
|
||||
"vision",
|
||||
"tool_use",
|
||||
"agent",
|
||||
"long_context"
|
||||
],
|
||||
"extra": {
|
||||
"adaptiveThinking": true,
|
||||
"reasoning": {
|
||||
"supportedEfforts": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"defaultEffort": "high"
|
||||
}
|
||||
},
|
||||
"source": "preset"
|
||||
},
|
||||
{
|
||||
"modelName": "claude-sonnet-5",
|
||||
"displayName": "Claude Sonnet 5",
|
||||
@@ -175,5 +142,8 @@
|
||||
],
|
||||
"source": "preset"
|
||||
}
|
||||
],
|
||||
"tombstones": [
|
||||
"claude-opus-4-8"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user