Add baidu qianfan model provider

main
ideoutrea 2026-02-04 16:36:37 +08:00
parent 30ac80b96b
commit 1de05ad068
1 changed files with 17 additions and 18 deletions

View File

@ -11,7 +11,6 @@ title: "Qianfan"
Qianfan is Baidu's MaaS platform, provides a **unified API** that routes requests to many models behind a single Qianfan is Baidu's MaaS platform, provides a **unified API** that routes requests to many models behind a single
endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL. endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.
## Prerequisites ## Prerequisites
1. A Baidu Cloud account with Qianfan API access 1. A Baidu Cloud account with Qianfan API access
@ -165,7 +164,7 @@ openclaw channels status --probe
## Model Details ## Model Details
| Property | Value | | Property | Value |
| ----------------- |-------------------------| | ----------------- | ----------------------- |
| Provider | `qianfan` | | Provider | `qianfan` |
| Model ID | `deepseek-v3.2` | | Model ID | `deepseek-v3.2` |
| Model Reference | `qianfan/deepseek-v3.2` | | Model Reference | `qianfan/deepseek-v3.2` |
@ -184,22 +183,22 @@ The default model is `deepseek-v3.2`. You can configure additional models in you
"providers": { "providers": {
"qianfan": { "qianfan": {
"models": [ "models": [
{ {
"id": "deepseek-v3", "id": "deepseek-v3",
"name": "DeepSeek-V3", "name": "DeepSeek-V3",
"reasoning": false, "reasoning": false,
"input": ["text"], "input": ["text"],
"contextWindow": 131072, "contextWindow": 131072,
"maxTokens": 16384 "maxTokens": 16384
}, },
{ {
"id": "ernie-x1.1", "id": "ernie-x1.1",
"name": "ERNIE-X1.1", "name": "ERNIE-X1.1",
"reasoning": true, "reasoning": true,
"input": ["text"], "input": ["text"],
"contextWindow": 65536, "contextWindow": 65536,
"maxTokens": 65536 "maxTokens": 65536
} }
] ]
} }
} }