Add CoderPlan provider - #5035
Conversation
Action items
|
…ricing headers - deepseek-v4-flash: effort [low, high, max] (matches upstream baseline) - deepseek-v4-pro: effort [high, max] (matches upstream baseline) - Add wire-path comment on DeepSeek toggle files (thinking.type passthrough) - Add CNY conversion header (1 USD = 7.15 CNY, 2026-08-18) on all priced files
2d425a0 to
7f057e9
Compare
|
All four action items addressed in 7f057e9:
|
|
No actionable findings. |
|
I dont see cache pricing listed here? |
|
CoderPlan doesn't currently publish separate cache pricing — the catalog prices already reflect cache-hit savings ("重复上下文按缓存读取价重算"), billed at a flat rate per model (GPT ~0.35×, Claude ~0.5×, DeepSeek ~0.8× official). The dashboard itemizes cache hits per call, but there's no public per-model cache_input/cache_output rate table yet. Also noting the upstream base entries (e.g. anthropic/claude-opus-4-7) here don't list cache costs either — I matched that shape. Happy to add cache fields if/when CoderPlan publishes explicit cache rates; can also compute effective cache rates from the multiplier if maintainers prefer that (would be derived, not catalog-sourced — flagging transparently). |
- claude-sonnet-4-6: cache ¥0.10/1M -> 0.014 - claude-haiku-4-5: ¥0.05 -> 0.007 - gpt-5.5: ¥0.18 -> 0.025 - gpt-5.4: ¥0.09 (standard tier) -> 0.0126 - deepseek-v4-pro: ¥0.24 -> 0.0336 - deepseek-v4-flash: ¥0.08 -> 0.0112 - claude-opus-4-7: left blank pending clean tier confirmation (catalog page groups are ambiguous for this one)
|
You're absolutely right — my mistake. The catalog page does list cache pricing (缓存读取 column); I checked an incomplete render earlier and missed it. Thanks for catching it. Added
One honest gap: claude-opus-4-7 left without cache_input — the catalog page shows multiple price groupings for it and I couldn't cleanly confirm which tier pairs with the input price used here, so I'd rather leave it blank than guess. Happy to fill it if maintainers prefer a specific tier (or I can confirm with the CoderPlan team). |
Action items
|
|
Renamed to |
|
Correction to my previous comment: the rename commit is |

Summary
Adds CoderPlan — a pay-as-you-go LLM API relay for coding CLIs (Claude Code / Codex CLI / Gemini CLI) with an OpenAI-compatible endpoint at
https://api.coderplan.ai/v1.Supersedes #2995 — the original author's fork account is no longer available to push fixes, so this PR resubmits with the automated review's feedback fully addressed:
base_model's native shape in this repo (e.g.claude-opus-4-7→effort: low/medium/high/xhigh/maxwithoutbudget_tokens; DeepSeek V4 →toggle+high/maxwithinterleaved.reasoning_content; GPT-5.x →none/low/medium/high/xhigh). Caveat: options mirror the native control surface because CoderPlan proxies the native API; per-level passthrough testing on CoderPlan's endpoint is pending — happy to trim to a provider-proven set if maintainers prefer.currentColor(matching the earlier review note on Add CoderPlan provider #2995).Validation
bun run validatepasses locally (repo clone + these files)Models included (subset; more can follow)
Claude (Opus 4.7 / Sonnet 4.6 / Haiku 4.5), GPT (5.4 / 5.5), DeepSeek (V4 Pro / Flash)