v0.1.6
Added
bun run update-pricing. You refresh the pricing table by hand, never on a schedule. The command fetches Ollama's live rate card, prints every rate that changed and rewritescatalog/pricing.json. When the page and the catalog disagree, say a model Ollama just added or retired, it stops with a report and writes nothing.- Pre-commit hooks. Contributors get prettier formatting and a typecheck gate;
pre-commit installsets them up.
Changed
- Pricing now shows the official Ollama Cloud rate by default, the number your credits actually pay per million tokens. The rates come from Ollama's public rate card and ship in
catalog/pricing.json. No configuration needed.pricing: "off"turns it off; the oldpricing: "reference"still works and means on. - The
/modelcard lists the three rates: input, cached input and output. Cache reads are priced at the cached-input rate, so sessions with cache hits cost what Ollama actually charges.
Removed
- The upstream "reference price" and
catalog/pricing-overrides.json. That estimate existed because Ollama published no rates; with an official rate card there is nothing left to correct. Pricing no longer ships insidecatalog/catalog.jsoneither. The table is the only home for rates, and the automated catalog update cannot touch it.
Full changelog: v0.1.5...v0.1.6