Files
config-center/compute/providers/anthropic.json
Yige 7832ae26a9 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 影响。
2026-08-08 18:44:57 +08:00

206 lines
5.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"id": "provider-anthropic-001",
"provider": "anthropic",
"label": "Anthropic Claude",
"baseUrl": "https://api.anthropic.com",
"apiFormat": "anthropic-messages",
"apiKeyRef": "anthropic",
"apiKeyVerified": false,
"enabled": false,
"status": "unconfigured",
"priceCurrency": "USD",
"services": [
"chat",
"computer_use"
],
"models": [
{
"modelName": "claude-fable-5",
"displayName": "Claude Fable 5",
"serviceType": [
"chat"
],
"description": "Anthropic 最高能力公开模型,面向长程智能体和高难推理任务",
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"inputPrice": 10,
"outputPrice": 50,
"extra": {
"serverSideWebSearch": {
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 1,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
"write5m": 12.5,
"write1h": 20,
"read": 1
},
"adaptiveThinking": true,
"reasoning": {
"supportedEfforts": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"defaultEffort": "high"
},
"samplingParametersDeprecated": true,
"pricingNotes": "Prices are per 1M tokens. Full 1M context is billed at standard pricing."
}
},
{
"modelName": "claude-opus-5",
"displayName": "Claude Opus 5",
"serviceType": [
"chat"
],
"description": "Anthropic Opus 系列当前旗舰,复杂智能体编码与长程任务能力显著强于 Opus 4.8价格不变1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"inputPrice": 5,
"outputPrice": 25,
"extra": {
"serverSideWebSearch": {
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 2,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
"write5m": 6.25,
"write1h": 10,
"read": 0.5
},
"promptCacheMinTokens": 512,
"adaptiveThinking": true,
"thinkingOnByDefault": true,
"reasoning": {
"supportedEfforts": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"defaultEffort": "high"
},
"defaultEffort": "high",
"samplingParametersDeprecated": true,
"pricingNotes": "Prices are per 1M tokens. Full 1M context is billed at standard pricing."
}
},
{
"modelName": "claude-sonnet-5",
"displayName": "Claude Sonnet 5",
"serviceType": [
"chat",
"computer_use"
],
"description": "Anthropic Sonnet 5速度与智能平衡模型支持电脑使用和长上下文智能体任务",
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"computer_use",
"agent",
"long_context"
],
"inputPrice": 2,
"outputPrice": 10,
"extra": {
"serverSideWebSearch": {
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 3,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
"write5m": 2.5,
"write1h": 4,
"read": 0.2
},
"introductoryPricingUntil": "2026-08-31",
"standardPricingFrom": "2026-09-01",
"standardInputPrice": 3,
"standardOutputPrice": 15,
"adaptiveThinking": true,
"reasoning": {
"supportedEfforts": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"defaultEffort": "high"
},
"defaultEffort": "high",
"samplingParametersDeprecated": true
}
},
{
"modelName": "claude-haiku-4-5",
"displayName": "Claude Haiku 4.5",
"serviceType": [
"chat"
],
"description": "Anthropic 最快模型,具备接近前沿模型的智能水平",
"contextWindow": 200000,
"maxOutputTokens": 64000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use"
],
"inputPrice": 1,
"outputPrice": 5,
"defaultTemperature": 1,
"extra": {
"modelId": "claude-haiku-4-5-20251001",
"cachePricing": {
"write5m": 1.25,
"write1h": 2,
"read": 0.1
},
"pricingNotes": "Prices are per 1M tokens."
}
}
],
"tombstones": [
"claude-opus-4-8",
"claude-opus-4-7",
"claude-sonnet-4-6"
]
}