docs: add 0.2.0 changelog entry and pricing section to README

Document the incremental reasoning-delta streaming, live display pricing,
and dynamic model fetch in CHANGELOG.md. Add a Pricing section to
README.md explaining the MODEL_COSTS overlay and how to update prices.
This commit is contained in:
Fei Yan
2026-05-27 07:32:50 +08:00
parent e8f7410a0a
commit 93864879b2
4 changed files with 24 additions and 14 deletions
+9
View File
@@ -115,6 +115,15 @@ https://api.commandcode.ai/provider/v1/models
For tests or local mocks, override it with `COMMANDCODE_MODELS_URL`.
## Pricing
Command Code does not yet expose model pricing through its Provider API. The provider ships a static cost table (`MODEL_COSTS` in `index.ts`) for known models so that pi can display per-model pricing.
- Models present in `MODEL_COSTS` show their real per-million-token rates (including promotional deals like the DeepSeek V4 Pro 4× discount and Qwen 3.7 Max 2× discount).
- Models **not** in the table fall back to zero cost. When the Provider API adds a `cost` field, the static table can be removed.
To add or update a price, edit the `MODEL_COSTS` record in `index.ts` and update the corresponding test in `tests/test-models.ts`.
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, PR expectations, and commit message rules.