Skip to content

Add Baidu Qianfan model provider#8868

Merged
steipete merged 19 commits intoopenclaw:mainfrom
ide-rea:qianfan
Feb 7, 2026
Merged

Add Baidu Qianfan model provider#8868
steipete merged 19 commits intoopenclaw:mainfrom
ide-rea:qianfan

Conversation

@ide-rea
Copy link
Contributor

@ide-rea ide-rea commented Feb 4, 2026

Greptile Overview

Greptile Summary

Adds Baidu Qianfan as a new OpenAI-compatible model provider, including docs and onboarding support.

Key changes:

  • New docs page and links for the Qianfan provider (docs/providers/qianfan.md, plus docs index/routes).
  • Provider auto-detection via env/profile and a default model definition (src/agents/models-config.providers.ts).
  • New qianfan-api-key auth choice with both interactive and non-interactive onboarding paths and credential storage (src/commands/*).

Confidence Score: 3/5

  • This PR is close to mergeable but has a functional onboarding bug around env credential detection that should be fixed first.
  • Most changes are additive and follow existing provider patterns, but the interactive auth flow currently won’t pick up env-based credentials due to a mismatched resolveEnvApiKey argument, which will affect real users. There’s also duplicated Qianfan constants across modules that increases the chance of future inconsistencies.
  • src/commands/auth-choice.apply.api-providers.ts, src/commands/onboard-auth.config-core.ts

Context used:

  • Context from dashboard - CLAUDE.md (source)
  • Context from dashboard - AGENTS.md (source)

@openclaw-barnacle openclaw-barnacle bot added docs Improvements or additions to documentation cli CLI command changes commands Command implementations agents Agent runtime and tooling labels Feb 4, 2026
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

@@ -0,0 +1,290 @@
---
summary: "Use Qifan's unified API to access many models in OpenClaw"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Doc frontmatter likely has a typo in the provider name

The summary says "Qifan's unified API" but the provider is Baidu Qianfan. This looks like a spelling mistake in the frontmatter that will show up in search/snippets.

Suggested change
summary: "Use Qifan's unified API to access many models in OpenClaw"
summary: "Use Qianfan's unified API to access many models in OpenClaw"
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/providers/qianfan.md
Line: 2:2

Comment:
[P2] Doc frontmatter likely has a typo in the provider name

The summary says "Qifan's unified API" but the provider is Baidu **Qianfan**. This looks like a spelling mistake in the frontmatter that will show up in search/snippets.

```suggestion
summary: "Use Qianfan's unified API to access many models in OpenClaw"
```

How can I resolve this? If you propose a fix, please make it concise.

@ide-rea ide-rea marked this pull request as draft February 5, 2026 06:04
@ide-rea ide-rea marked this pull request as draft February 5, 2026 06:04
@ide-rea ide-rea marked this pull request as ready for review February 5, 2026 06:08
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@ide-rea
Copy link
Contributor Author

ide-rea commented Feb 5, 2026

Hi @steipete could you please take a look at this PR when you have a moment?

@ide-rea
Copy link
Contributor Author

ide-rea commented Feb 6, 2026

Hi, Folks @steipete @gumadeiras , please help review the code , we express our sincerely gratitude to the awesome community in advance 😊😊

@steipete steipete self-assigned this Feb 7, 2026
@steipete steipete merged commit 88ffad1 into openclaw:main Feb 7, 2026
19 of 24 checks passed
@steipete
Copy link
Contributor

steipete commented Feb 7, 2026

Landed to main.

  • Gate (local): pnpm build && pnpm ui:build && pnpm check && pnpm test
  • Merge commit: 88ffad1

Includes:

  • Qianfan auth choice ordering moved below xAI
  • Qianfan docs + config/tests cleanup
  • Test stability fixes (session-memory slug generation in Vitest; memory-lancedb lazy load)

Thanks @ide-rea!

@ide-rea ide-rea deleted the qianfan branch February 7, 2026 10:13
Get-windy pushed a commit to Get-windy/JieZi-ai-PS that referenced this pull request Feb 7, 2026
## 合并策略
**保留我们的核心功能 + 吸收上游改进**

### ✅ 保留我们的内容
1. **中文文档**
   - README.zh-CN.md(完整保留)
   - 飞书扩展文档汉化(所有 SKILL.md)

2. **AI 模型管理系统**(我们的创新)
   - ui/src/ui/views/models.ts - 模型视图
   - ui/src/ui/views/models.modals.ts - 模态框
   - ui/src/ui/controllers/models.ts - 控制器
   - ui/src/ui/components/icon-picker.ts - 图标选择器
   - src/gateway/server-methods/models.ts - 后端 API

3. **UI 框架改进**
   - 保留navigation中的'models'标签页
   - 保留app-render中的模型管理回调
   - 保留app-view-state中的模型状态

### ✅ 采用上游更新
1. **新功能**
   - 百度千帆(Baidu Qianfan)模型支持 (openclaw#8868)
   - 飞书多账号支持和 Bitable 功能
   - CI/CD 优化(Windows并行测试)
   - Docker 和构建修复

2. **依赖更新**
   - package.json, pnpm-lock.yaml
   - 所有第三方依赖版本

3. **飞书扩展代码**
   - 采用上游完善的实现(更好的JSDoc、类型定义)
   - 保留我们的文档汉化

### 📝 待后续集成
- **Usage标签页**:上游的 Token 使用情况仪表板
  - 需要手动添加到navigation
  - 需要导入usage.ts视图
  - 与我们的models标签页互补

### 🔄 上游版本
- 从 cf95b2f 更新到 ad4dd04
- 版本:2026.2.6-2
- 合并提交数:约1887个对象

提交时间:2026-02-07
Isoceth pushed a commit to Isoceth/openclaw that referenced this pull request Feb 7, 2026
- Providers: Baidu Qianfan (openclaw#8868), Voyage AI native embeddings (openclaw#7078)
- Cron: scheduler reliability, store hardening, UX improvements (openclaw#10776)
- Build: Docker .mjs entrypoint support, daemon-cli compat shim
- CI: concurrency controls, macOS job consolidation, Windows vitest parallelism
- Security: Voyage AI input_type for improved retrieval (openclaw#10818)
- Docs: changelog curation, iMessage TCC troubleshooting, markdownlint fixes
- Skills: rewritten merge-upstream and promote-to-main commands
- Chores: version bump to 2026.2.6-3, dependency updates
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
- Add Qianfan provider config with OpenAI-compatible API at qianfan.baidubce.com/v2
- Add deepseek-v3.2 and ernie-5.0-thinking-preview models
- Add QIANFAN_API_KEY env var resolution in model-auth
- Add Qianfan to onboarding auth flow (interactive + non-interactive)
- Add auth-choice-options entry and preferred-provider mapping
- Convert LanceDB static import to lazy dynamic import for macOS compat
- Add Qianfan provider documentation
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
Tasks completed: 2/2
- Port Baidu Qianfan provider (#8868)
- Reorder auth choice options

SUMMARY: .planning/phases/15-context-overflow-web-ui-providers/15-04-SUMMARY.md
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants