Repository navigation
docs: state that pricing is also tiered by request input length - #420
Merged
Merged
Conversation
The transparent-billing line names the price modifiers a model row can carry, and it named one of the two: peak-hour pricing. Tiered pricing has shipped since the catalogue gained `[[models.tiers]]`, and billing settles at the tier the request's input length selects — but no user-facing carrier mentioned it. Four carriers describe that same roster and were short by the same entry, so they move together: the README.md and README.en.md feature lists, the docs/user-stories.md capability list, and the two enumerations in docs/plan-api-matrix.md (§3 price modifiers, §4 model fields). Deliberately no counts and no model names: which rows carry a second tier block is owned by `config/config.example.toml`, and a list copied into prose is the stale-copy family this repo keeps cleaning up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The transparent-billing line in the feature lists names the price modifiers a
model row can carry, and it named one of the two: peak-hour pricing.
Tiered pricing has shipped since the catalogue gained
[[models.tiers]], andbilling::select_tiersettles each request at the tier its input lengthselects. No user-facing carrier mentioned it, so a reader could not learn from
the docs that a long request is billed at a different rate than a short one.
Four carriers describe that same roster and were short by the same entry, so
they move together:
README.mdfeature listREADME.en.mdfeature listdocs/user-stories.mdcapability listdocs/plan-api-matrix.md§3 (price modifiers)docs/plan-api-matrix.md§4 (model fields)Changes
config/config.example.toml(viasrc/catalog_gate.rs), and a list copied into prose is the stale-copy family this repository keeps cleaning upbilling::select_tier's contract: the tier is chosen by that request's input length (input + cache-hit), not by a user's cumulative usageRelated Issue
None. This is a docs correction: the prose described a shipped capability
incompletely.
docs/architecture.mdalready liststiers_jsoncorrectly andis left alone.
Tests
cargo test— 579 passed, 0 failedcargo fmt --check— cleanreadme_gaterun by name (both READMEs edited) — 4 passed; the twolanguage versions still carry the same code spans, link targets, bare
URLs and number literals
src/assertdata parity and structure —
catalog_gatechecks the catalogue againstconfig.example.toml,readme_gatechecks that the two READMEs carrythe same non-language-dependent facts — and none of them asserts the
wording of a feature bullet, so there is no assertion to add here