Files
config-center/compute/providers/anthropic.json
Yige d28297242c feat(compute): 官方 Anthropic 模型声明接受不含 thinking 的工具轮 (#99)
新增 extra.thinkingToolTurnValidation(requires-thinking / accepts-thinkless),与
thinkingRoundTrip 并列(后者 additionalProperties:false,不能往里加字段)。

anthropic.json 与 anthropic-claude.json 的 Fable 5.1 / Opus 5 / Sonnet 5 声明
accepts-thinkless:官方 adaptive thinking 不要求工具轮以 thinking 开头,模型跳过思考的
工具轮原样回放即合法(mini 真机六轮验证全部 200)。客户端据此不再对这类响应重试、
不再降级为关闭思考。旧客户端忽略该字段,行为不变。

model-spec schema 的 spec.extra 同步禁止 thinkingRoundTrip 与 thinkingToolTurnValidation,
与客户端 Schema 一致,避免写错后新客户端整份拒收规格。

presetDataVersion 113 → 114。
2026-09-13 05:48:36 -04:00

203 lines
5.4 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-1",
"displayName": "Claude Fable 5.1",
"serviceType": [
"chat"
],
"description": "面向高难推理和长程智能体任务,1M 上下文,始终开启自适应思考",
"contextWindow": 1000000,
"maxOutputTokens": 128000,
"capabilities": [
"chat",
"reasoning",
"code",
"vision",
"tool_use",
"agent",
"long_context"
],
"inputPrice": 10,
"outputPrice": 50,
"extra": {
"thinkingRoundTrip": {
"enabled": true,
"protocol": "anthropic-messages",
"allowEmptySignature": false,
"scope": "active-tool-turn"
},
"thinkingToolTurnValidation": "accepts-thinkless",
"serverSideWebSearch": {
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 1,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
"write5m": 12.5,
"write1h": 20,
"read": 0.25
},
"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.",
"thinkingOnByDefault": true,
"thinkingOnly": true
}
},
{
"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": {
"thinkingRoundTrip": {
"enabled": true,
"protocol": "anthropic-messages",
"allowEmptySignature": false,
"scope": "active-tool-turn"
},
"thinkingToolTurnValidation": "accepts-thinkless",
"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": "xhigh"
},
"defaultEffort": "xhigh",
"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": {
"thinkingRoundTrip": {
"enabled": true,
"protocol": "anthropic-messages",
"allowEmptySignature": false,
"scope": "active-tool-turn"
},
"thinkingToolTurnValidation": "accepts-thinkless",
"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": "xhigh"
},
"defaultEffort": "xhigh",
"samplingParametersDeprecated": true
}
}
],
"tombstones": [
"claude-opus-4-8",
"claude-opus-4-7",
"claude-sonnet-4-6",
"claude-fable-5",
"claude-haiku-4-5",
"claude-haiku-4-5-20251001"
]
}