feat(providers): add Baidu Qianfan Coding Plan for Claude Code#2322
feat(providers): add Baidu Qianfan Coding Plan for Claude Code#2322farion1231 merged 3 commits intofarion1231:mainfrom
Conversation
farion1231
left a comment
There was a problem hiding this comment.
Could this preset be aligned with the existing file format? Its current structure differs quite a bit from the others.
|
Hi Jason, aligned the Qianfan presets with the existing preset file style by inlining the config in each preset file and removing the shared preset metadata/tests. Also added the base URL template fields for OpenCode/OpenClaw to match nearby presets. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 591d6feeb3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Hi Jason, I narrowed this PR to Claude Code support only and removed the Qianfan Coding Plan presets from OpenClaw and OpenCode for now. Follow-up issue: #2358 |
|
@farion1231 Hi Jason, just following up on this PR as it’s been almost a week. Could you please help review and merge it when you get a chance?😃 |
farion1231
left a comment
There was a problem hiding this comment.
Thank you for your contribution!
…n1231#2322) * feat(providers): add baidu qianfan coding plan presets * refactor(providers): align qianfan presets with existing format * chore(providers): narrow qianfan coding plan scope
…n1231#2322) * feat(providers): add baidu qianfan coding plan presets * refactor(providers): align qianfan presets with existing format * chore(providers): narrow qianfan coding plan scope
…n1231#2322) * feat(providers): add baidu qianfan coding plan presets * refactor(providers): align qianfan presets with existing format * chore(providers): narrow qianfan coding plan scope
What changed
https://qianfan.baidubce.com/anthropic/codingqianfan-code-latestas the default Claude Code model fields.coding_plan_hour_quota_exceededcoding_plan_week_quota_exceededcoding_plan_month_quota_exceededWhy this change is needed
Baidu Qianfan Coding Plan was not available as a Claude Code provider preset, so users had to manually enter the endpoint, token field, and model configuration.
This PR adds a focused Claude Code preset path for Qianfan Coding Plan while keeping OpenCode and OpenClaw support out of scope for now.
User impact
qianfan-code-latestkeeps the local model config stable while users manage the underlying Coding Plan model from the Qianfan console.Follow-up
OpenCode and OpenClaw support is tracked separately because those providers need full URL mode support for non-standard OpenAI-compatible endpoints:
Tests
pnpm typecheckpnpm format:checkcd src-tauri && cargo test test_detect_qianfan_coding_plan_quota_errorscd src-tauri && cargo fmt --check