Files
config-center/compute/providers/anthropic-claude.json
Yige a752fddd0b feat(compute): 新增 Claude Opus 5 + 补齐 Claude 系列 effort 档位,presetDataVersion → 85 (#71)
Opus 5 是 Anthropic Opus 系列当前旗舰(1M 上下文 / 128K 输出 / $5·$25 per MTok,
与 Opus 4.8 同价),此前 config-center 完全缺失,用户在模型选择器里看不到它。

变更:
- compute/providers/anthropic.json:新增 claude-opus-5(排在 fable-5 之后、
  opus-4-8 之前);serverSideWebSearch.fallbackPriority 顺延重排
- compute/providers/anthropic-claude.json:Claude 订阅 provider 同步新增 claude-opus-5
- compute/model-specs/anthropic.json:补 claude-opus-5 与 claude-sonnet-5 规格
  (sonnet-5 此前只有 provider 条目、没有规格)
- 补 extra.reasoning.supportedEfforts:客户端 parseReasoningEffortConfig 只读
  extra.reasoning,原有的顶层 extra.defaultEffort 不被消费,导致 Claude 模型的
  effort 档位在 UI 上始终不可选。按各模型实际支持声明档位(sonnet-4-6 无 xhigh)
- __tests__/validate.test.mjs:WebSearch 允许名单登记 claude-opus-5
- manifest.json:presetDataVersion 84 → 85
2026-08-08 17:59:09 +08:00

180 lines
4.3 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-claude-plan-001",
"provider": "anthropic-claude",
"brandGroup": "anthropic",
"label": "Claude 订阅 (Claude Code)",
"baseUrl": "https://api.anthropic.com",
"apiFormat": "anthropic-messages",
"apiKeyRef": "anthropic-claude-oauth-token",
"apiKeyVerified": false,
"enabled": false,
"status": "unconfigured",
"priceCurrency": "USD",
"accessMode": "coding-plan",
"credentialSource": "claude-oauth",
"requiredClientVersion": "10.0.83",
"codingPlan": {
"quotas": {},
"usageTracking": {
"method": "none",
"consoleUrl": "https://claude.ai/settings/usage"
}
},
"services": [
"chat",
"reasoning"
],
"models": [
{
"modelName": "claude-fable-5",
"displayName": "Claude Fable 5",
"serviceType": [
"chat"
],
"description": "Claude 订阅额度计费Anthropic 最高能力公开模型面向长程智能体与高难推理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-opus-5",
"displayName": "Claude Opus 5",
"serviceType": [
"chat"
],
"description": "Claude 订阅额度计费Opus 系列当前旗舰复杂智能体编码与长程任务首选1M 上下文",
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"extra": {
"adaptiveThinking": true,
"thinkingOnByDefault": true,
"reasoning": {
"supportedEfforts": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"defaultEffort": "high"
}
},
"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",
"serviceType": [
"chat"
],
"description": "Claude 订阅额度计费,速度与智能平衡模型,支持长上下文智能体任务",
"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-haiku-4-5",
"displayName": "Claude Haiku 4.5",
"serviceType": [
"chat"
],
"description": "Claude 订阅额度计费最快模型具备接近前沿模型的智能水平200K 上下文",
"contextWindow": 200000,
"maxOutputTokens": 64000,
"capabilities": [
"chat",
"code",
"vision",
"tool_use"
],
"source": "preset"
}
]
}