optimize doc

This commit is contained in:
ideoutrea
2026-02-04 22:57:34 +08:00
parent 009abd306a
commit fb5280e1b5
2 changed files with 4 additions and 15 deletions

View File

@@ -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:
- You want a single API key for many LLMs
- You need Baidu Qianfan setup guidance
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
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.
### Method 3: Non-Interactive Setup
For CI/CD or scripted setups:
```bash
openclaw onboard \
--non-interactive \
--accept-risk \
--auth-choice token \
--token-provider qianfan \
--token "bce-v3/ALTAK-your-api-key-here"
```
### Method 4: Configuration File
### Method 3: Configuration File
Configure manually via `openclaw.json`:

View File

@@ -108,7 +108,7 @@ export function buildMoonshotModelDefinition(): ModelDefinitionConfig {
export function buildQianfanModelDefinition(): ModelDefinitionConfig {
return {
id: QIANFAN_DEFAULT_MODEL_ID,
name: "ERNIE 5.0",
name: "DEEPSEEK V3.2",
reasoning: true,
input: ["text"],
cost: QIANFAN_DEFAULT_COST,