Files
config-center/compute/v2/compatibility/providers/baidu.json
T
yige e8122c1d77 fix(compute): 按官网补对话型号的 tool_use 标签 (#119)
逐条对照供应商官方文档,核对 36 个对话规格与 70 个 Provider / 套餐预置条目
(capabilities 缺 tool_use / tools / function_calling)的工具调用支持情况:

- 补 tool_use 25 条:规格 9、随规格继承的接入条目 5、接入覆盖 11
- 保持原样 81 条:官方写明不支持或页面互相矛盾 10、已下线或数日内下线 26、
  官方当前文档无该型号或无工具调用说明 34、只在未适配接口上支持 2、官网读取失败 9
- 只改 capabilities,不动 routing;qwen-max 等按华北 2(北京)地域记,国际站不适用
- 同步单模型来源记录、供应商证据目录与来源缺口清单;逐条决定与依据见
  docs/source-rechecks/2026-10-05-tool-calling/README.md
- presetDataVersion 128 → 129
2026-10-04 18:26:40 -07:00

159 lines
3.8 KiB
JSON

{
"id": "provider-baidu-001",
"provider": "baidu",
"label": "百度 文心",
"baseUrl": "https://qianfan.baidubce.com/v2",
"apiFormat": "openai-completions",
"apiKeyRef": "baidu",
"apiKeyVerified": false,
"enabled": false,
"status": "unconfigured",
"priceCurrency": "CNY",
"services": [
"chat",
"reasoning"
],
"models": [
{
"modelName": "ernie-5.0-thinking-latest",
"displayName": "文心 ERNIE 5.0",
"serviceType": [
"chat",
"reasoning"
],
"description": "百度最新旗舰模型,支持深度推理、多模态和工具调用,119K输入/64K输出",
"contextWindow": 128000,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"vision",
"multimodal",
"tool_use"
],
"inputPrice": 6,
"outputPrice": 24,
"extra": {
"pricingTiers": [
{
"maxInputTokens": 32768,
"inputPrice": 6,
"outputPrice": 24
},
{
"maxInputTokens": 131072,
"inputPrice": 10,
"outputPrice": 40
}
],
"thinkingMaxTokens": 60000
}
},
{
"modelName": "ernie-5.0",
"displayName": "文心 ERNIE 5.0 非思考",
"serviceType": [
"chat"
],
"description": "百度 ERNIE 5.0 旗舰模型,128K 上下文,119K 最大输入,最大输出 65,536 token",
"contextWindow": 131072,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"vision",
"multimodal",
"tool_use"
],
"inputPrice": 6,
"outputPrice": 24,
"defaultTemperature": 0.95,
"defaultTopP": 0.7,
"extra": {
"pricingTiers": [
{
"maxInputTokens": 32768,
"inputPrice": 6,
"outputPrice": 24
},
{
"maxInputTokens": 131072,
"inputPrice": 10,
"outputPrice": 40
}
]
}
},
{
"modelName": "ernie-4.5-turbo-128k",
"displayName": "文心 ERNIE 4.5 Turbo",
"serviceType": [
"chat"
],
"description": "百度高性价比长上下文模型,128K 窗口,最大输出 12,288 token",
"contextWindow": 131072,
"maxOutputTokens": 12288,
"capabilities": [
"chat",
"code",
"vision",
"long_context",
"fast"
],
"inputPrice": 0.8,
"outputPrice": 3.2,
"defaultTemperature": 0.8,
"defaultTopP": 1,
"extra": {
"cacheHitPrice": 0.2
}
},
{
"modelName": "ernie-4.5-turbo-20260402",
"displayName": "文心 ERNIE 4.5 Turbo 20260402",
"serviceType": [
"chat"
],
"description": "百度 ERNIE 4.5 Turbo 20260402 快照,128K 上下文,最大输出 12,288 token",
"contextWindow": 131072,
"maxOutputTokens": 12288,
"capabilities": [
"chat",
"code",
"vision",
"long_context",
"fast"
],
"inputPrice": 0.8,
"outputPrice": 3.2,
"defaultTemperature": 0.8,
"defaultTopP": 1,
"extra": {
"cacheHitPrice": 0.2
}
},
{
"modelName": "ernie-x1.1",
"displayName": "文心 ERNIE X1.1",
"serviceType": [
"reasoning"
],
"description": "百度 ERNIE X1.1 深度思考模型,64K 上下文,最大输出 65,536 token",
"contextWindow": 65536,
"maxOutputTokens": 65536,
"capabilities": [
"chat",
"reasoning",
"deep_thinking",
"math",
"code",
"tool_use"
],
"inputPrice": 1,
"outputPrice": 4,
"extra": {
"thinkingMaxTokens": 65536
}
}
]
}