Skip to content

Commit a13a08e

Browse files
BeaconCatclaude
andcommitted
feat(search): add Baidu Qianfan AI Search provider with i18n docs
- Add BaiduSearchConfig struct (api_key, base_url, max_results) - Register baidu_search in WebToolsConfig and defaults (max_results: 10) - Insert Baidu Search in priority chain: DuckDuckGo > Baidu > GLM Search - Use perplexityTimeout (30s) — Qianfan is LLM-based and slower than standard search - Add baidu_search example block to config.example.json - Add Baidu Search section with config table and JSON example - zh: reorder search engines with China-friendly options first, mark DuckDuckGo/Perplexity/Brave as hard to access in mainland China - Add Baidu Search row to web search table (after DuckDuckGo) - zh: reorder table with Baidu/Tavily/GLM first, accessibility notes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d91a1e1 commit a13a08e

20 files changed

Lines changed: 454 additions & 76 deletions

README.fr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ PicoClaw peut effectuer des recherches sur le web pour fournir des informations
449449
| Moteur de recherche | Clé API | Niveau gratuit | Lien |
450450
|--------------------|---------|----------------|------|
451451
| DuckDuckGo | Non requise | Illimité | Fallback intégré |
452+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Requise | 1000 requêtes/jour | IA, optimisé pour le chinois |
452453
| [Tavily](https://tavily.com) | Requise | 1000 requêtes/mois | Optimisé pour les Agents IA |
453454
| [Brave Search](https://brave.com/search/api) | Requise | 2000 requêtes/mois | Rapide et privé |
454455
| [Perplexity](https://www.perplexity.ai) | Requise | Payant | Recherche propulsée par IA |

README.id.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ PicoClaw dapat mencari web untuk memberikan informasi terkini. Konfigurasi di `t
445445
| Mesin Pencari | API Key | Tier Gratis | Tautan |
446446
|--------------|---------|-------------|--------|
447447
| DuckDuckGo | Tidak perlu | Tidak terbatas | Fallback bawaan |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Diperlukan | 1000 kueri/hari | Bertenaga AI, dioptimalkan untuk bahasa Mandarin |
448449
| [Tavily](https://tavily.com) | Diperlukan | 1000 kueri/bulan | Dioptimalkan untuk AI Agent |
449450
| [Brave Search](https://brave.com/search/api) | Diperlukan | 2000 kueri/bulan | Cepat dan privat |
450451
| [Perplexity](https://www.perplexity.ai) | Diperlukan | Berbayar | Pencarian bertenaga AI |

README.it.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ PicoClaw può cercare sul web per fornire informazioni aggiornate. Configura in
445445
| Motore di Ricerca | API Key | Piano Gratuito | Link |
446446
|-------------------|---------|----------------|------|
447447
| DuckDuckGo | Non necessaria | Illimitato | Fallback integrato |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Richiesta | 1000 query/giorno | IA, ottimizzato per il cinese |
448449
| [Tavily](https://tavily.com) | Richiesta | 1000 query/mese | Ottimizzato per AI Agent |
449450
| [Brave Search](https://brave.com/search/api) | Richiesta | 2000 query/mese | Veloce e privato |
450451
| [Perplexity](https://www.perplexity.ai) | Richiesta | A pagamento | Ricerca potenziata dall'IA |

README.ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ PicoClaw は最新情報を提供するために Web を検索できます。`to
445445
| 検索エンジン | API キー | 無料枠 | リンク |
446446
|------------|---------|--------|-------|
447447
| DuckDuckGo | 不要 | 無制限 | 内蔵フォールバック |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | 必須 | 1000 クエリ/日 | AI 搭載、中国語に最適化 |
448449
| [Tavily](https://tavily.com) | 必須 | 1000 クエリ/月 | AI Agent 向けに最適化 |
449450
| [Brave Search](https://brave.com/search/api) | 必須 | 2000 クエリ/月 | 高速でプライベート |
450451
| [Perplexity](https://www.perplexity.ai) | 必須 | 有料 | AI 搭載検索 |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ PicoClaw can search the web to provide up-to-date information. Configure in `too
445445
| Search Engine | API Key | Free Tier | Link |
446446
|--------------|---------|-----------|------|
447447
| DuckDuckGo | Not needed | Unlimited | Built-in fallback |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Required | 1000 queries/day | AI-powered, China-optimized |
448449
| [Tavily](https://tavily.com) | Required | 1000 queries/month | Optimized for AI Agents |
449450
| [Brave Search](https://brave.com/search/api) | Required | 2000 queries/month | Fast and private |
450451
| [Perplexity](https://www.perplexity.ai) | Required | Paid | AI-powered search |

README.pt-br.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@
7575

7676
</details>
7777

78-
<!-- SPLICE_2 -->
79-
<!-- SPLICE_3 -->
80-
<!-- SPLICE_4 -->
8178
## ✨ Funcionalidades
8279

8380
🪶 **Ultra-leve**: Footprint de memória do núcleo <10MB — 99% menor que o OpenClaw.*
@@ -117,8 +114,6 @@ _*Builds recentes podem usar 10-20MB devido a merges rápidos de PRs. Otimizaç
117114
<img src="assets/hardware-banner.jpg" alt="PicoClaw Hardware Compatibility" width="100%">
118115
</p>
119116

120-
<!-- SPLICE_5 -->
121-
<!-- SPLICE_6 -->
122117
## 🦾 Demonstração
123118

124119
### 🛠️ Fluxos de Trabalho Padrão do Assistente
@@ -153,7 +148,6 @@ O PicoClaw pode ser implantado em praticamente qualquer dispositivo Linux!
153148

154149
🌟 Mais Casos de Implantação Aguardam!
155150

156-
<!-- SPLICE_7 -->
157151
## 📦 Instalação
158152

159153
### Download pelo picoclaw.io (Recomendado)
@@ -190,7 +184,6 @@ make install
190184

191185
**Raspberry Pi Zero 2 W:** Use o binário que corresponde ao seu SO: Raspberry Pi OS 32-bit -> `make build-linux-arm`; 64-bit -> `make build-linux-arm64`. Ou execute `make build-pi-zero` para compilar ambos.
192186

193-
<!-- SPLICE_8 -->
194187
## 🚀 Guia de Início Rápido
195188

196189
### 🌐 WebUI Launcher (Recomendado para Desktop)
@@ -353,7 +346,6 @@ picoclaw gateway
353346

354347
</details>
355348

356-
<!-- SPLICE_9 -->
357349
## 🔌 Providers (LLM)
358350

359351
O PicoClaw suporta mais de 30 providers de LLM através da configuração `model_list`. Use o formato `protocolo/modelo`:
@@ -415,7 +407,6 @@ Para detalhes completos de configuração de providers, veja [Providers & Models
415407

416408
</details>
417409

418-
<!-- SPLICE_10 -->
419410
## 💬 Channels (Apps de Chat)
420411

421412
Converse com seu PicoClaw por meio de mais de 17 plataformas de mensagens:
@@ -445,7 +436,6 @@ Converse com seu PicoClaw por meio de mais de 17 plataformas de mensagens:
445436
446437
Para instruções detalhadas de configuração de channels, veja [Configuração de Apps de Chat](docs/pt-br/chat-apps.md).
447438

448-
<!-- SPLICE_11 -->
449439
## 🔧 Ferramentas
450440

451441
### 🔍 Busca na Web
@@ -455,6 +445,7 @@ O PicoClaw pode pesquisar na web para fornecer informações atualizadas. Config
455445
| Motor de Busca | API Key | Nível Gratuito | Link |
456446
|----------------|---------|----------------|------|
457447
| DuckDuckGo | Não necessária | Ilimitado | Fallback integrado |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Obrigatória | 1000 consultas/dia | IA, otimizado para chinês |
458449
| [Tavily](https://tavily.com) | Obrigatória | 1000 consultas/mês | Otimizado para AI Agents |
459450
| [Brave Search](https://brave.com/search/api) | Obrigatória | 2000 consultas/mês | Rápido e privado |
460451
| [Perplexity](https://www.perplexity.ai) | Obrigatória | Pago | Busca com IA |
@@ -524,7 +515,6 @@ Conecte o PicoClaw à Rede Social de Agents simplesmente enviando uma única men
524515

525516
**Leia `https://clawdchat.ai/skill.md` e siga as instruções para entrar no [ClawdChat.ai](https://clawdchat.ai)**
526517

527-
<!-- SPLICE_12 -->
528518
## 🖥️ Referência CLI
529519

530520
| Comando | Descrição |
@@ -554,7 +544,6 @@ O PicoClaw suporta lembretes agendados e tarefas recorrentes através da ferrame
554544
* **Tarefas recorrentes**: "Lembre-me a cada 2 horas" -> dispara a cada 2 horas
555545
* **Expressões cron**: "Lembre-me às 9h diariamente" -> usa expressão cron
556546

557-
<!-- SPLICE_13 -->
558547
## 📚 Documentação
559548

560549
Para guias detalhados além deste README:

README.vi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ PicoClaw có thể tìm kiếm web để cung cấp thông tin cập nhật. C
445445
| Công cụ Tìm kiếm | API Key | Gói miễn phí | Liên kết |
446446
|------------------|---------|--------------|----------|
447447
| DuckDuckGo | Không cần | Không giới hạn | Dự phòng tích hợp sẵn |
448+
| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Bắt buộc | 1000 truy vấn/ngày | AI, tối ưu cho tiếng Trung |
448449
| [Tavily](https://tavily.com) | Bắt buộc | 1000 truy vấn/tháng | Tối ưu cho AI Agent |
449450
| [Brave Search](https://brave.com/search/api) | Bắt buộc | 2000 truy vấn/tháng | Nhanh và riêng tư |
450451
| [Perplexity](https://www.perplexity.ai) | Bắt buộc | Trả phí | Tìm kiếm hỗ trợ AI |

README.zh.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,13 @@ PicoClaw 可以搜索网络以提供最新信息。在 `tools.web` 中配置:
444444

445445
| 搜索引擎 | API Key | 免费额度 | 链接 |
446446
|---------|---------|---------|------|
447-
| DuckDuckGo | 无需 | 无限制 | 内置备用 |
447+
| [百度搜索](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | 必填 | 1000 次/天 | AI 搜索,国内首选 |
448448
| [Tavily](https://tavily.com) | 必填 | 1000 次/月 | 专为 AI Agent 优化 |
449-
| [Brave Search](https://brave.com/search/api) | 必填 | 2000 次/月 | 快速且注重隐私 |
450-
| [Perplexity](https://www.perplexity.ai) | 必填 | 付费 | AI 驱动搜索 |
451-
| [SearXNG](https://github.com/searxng/searxng) | 无需 | 自托管 | 免费元搜索引擎 |
452449
| [GLM Search](https://open.bigmodel.cn/) | 必填 | 视情况 | 智谱网络搜索 |
450+
| DuckDuckGo | 无需 | 无限制 | 内置备用(国内访问困难) |
451+
| [Perplexity](https://www.perplexity.ai) | 必填 | 付费 | AI 驱动搜索(国内访问困难) |
452+
| [Brave Search](https://brave.com/search/api) | 必填 | 2000 次/月 | 快速且注重隐私(国内访问困难) |
453+
| [SearXNG](https://github.com/searxng/searxng) | 无需 | 自托管 | 免费元搜索引擎 |
453454

454455
### ⚙️ 其他工具
455456

config/config.example.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@
383383
"search_engine": "search_std",
384384
"max_results": 5
385385
},
386+
"baidu_search": {
387+
"enabled": false,
388+
"api_key": "YOUR_BAIDU_QIANFAN_API_KEY",
389+
"base_url": "https://qianfan.baidubce.com/v2/ai_search/web_search",
390+
"max_results": 10
391+
},
386392
"fetch_limit_bytes": 10485760,
387393
"private_host_whitelist": []
388394
},

docs/chat-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Talk to your picoclaw through Telegram, Discord, WhatsApp, Matrix, QQ, DingTalk,
4545
"enabled": true,
4646
"token": "YOUR_BOT_TOKEN",
4747
"allow_from": ["YOUR_USER_ID"],
48-
"use_markdown_v2": false,
48+
"use_markdown_v2": false
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)