optimize doc
parent
009abd306a
commit
fb5280e1b5
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
summary: "Use Qifan's unified API to access many models in OpenClaw"
|
summary: "Use Qianfan's unified API to access many models in OpenClaw"
|
||||||
read_when:
|
read_when:
|
||||||
- You want a single API key for many LLMs
|
- You want a single API key for many LLMs
|
||||||
- You need Baidu Qianfan setup guidance
|
- You need Baidu Qianfan setup guidance
|
||||||
title: "Qianfan"
|
title: "Qianfan"
|
||||||
---
|
---
|
||||||
|
|
||||||
# Baidu Qianfan Provider Guide
|
# Qianfan Provider Guide
|
||||||
|
|
||||||
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.
|
||||||
|
|
@ -79,20 +79,9 @@ openclaw onboard --auth-choice qianfan-api-key
|
||||||
|
|
||||||
Follow the prompts to enter your API key.
|
Follow the prompts to enter your API key.
|
||||||
|
|
||||||
### Method 3: Non-Interactive Setup
|
|
||||||
|
|
||||||
For CI/CD or scripted setups:
|
|
||||||
|
|
||||||
```bash
|
### Method 3: Configuration File
|
||||||
openclaw onboard \
|
|
||||||
--non-interactive \
|
|
||||||
--accept-risk \
|
|
||||||
--auth-choice token \
|
|
||||||
--token-provider qianfan \
|
|
||||||
--token "bce-v3/ALTAK-your-api-key-here"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Method 4: Configuration File
|
|
||||||
|
|
||||||
Configure manually via `openclaw.json`:
|
Configure manually via `openclaw.json`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export function buildMoonshotModelDefinition(): ModelDefinitionConfig {
|
||||||
export function buildQianfanModelDefinition(): ModelDefinitionConfig {
|
export function buildQianfanModelDefinition(): ModelDefinitionConfig {
|
||||||
return {
|
return {
|
||||||
id: QIANFAN_DEFAULT_MODEL_ID,
|
id: QIANFAN_DEFAULT_MODEL_ID,
|
||||||
name: "ERNIE 5.0",
|
name: "DEEPSEEK V3.2",
|
||||||
reasoning: true,
|
reasoning: true,
|
||||||
input: ["text"],
|
input: ["text"],
|
||||||
cost: QIANFAN_DEFAULT_COST,
|
cost: QIANFAN_DEFAULT_COST,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue