Skip to content

Add runtime pricing refresh & update snapshot#14

Merged
slkiser merged 1 commit intomainfrom
13-bug-miss-claude-haiku-4-5-price
Mar 3, 2026
Merged

Add runtime pricing refresh & update snapshot#14
slkiser merged 1 commit intomainfrom
13-bug-miss-claude-haiku-4-5-price

Conversation

@slkiser
Copy link
Owner

@slkiser slkiser commented Mar 3, 2026

Introduce runtime pricing refresh for models.dev data: add scripts (refresh-modelsdev-pricing.mjs, refresh-modelsdev-pricing-if-stale.mjs) and package.json commands to fetch and atomically write a trimmed pricing snapshot. Update README with runtime refresh behavior, env knobs, and maintainer commands. Implement runtime snapshot handling, refresh policy, health/state types, and atomic write/load paths in src/lib/modelsdev-pricing.ts; include bundled snapshot fallback and selection between bundled/runtime snapshots. Ship an updated bundled modelsdev-pricing.min.json with expanded provider/model entries and cache cost fields, add .emdash.json, and add/update tests related to pricing refresh and snapshot health.

Introduce runtime pricing refresh for models.dev data: add scripts (refresh-modelsdev-pricing.mjs, refresh-modelsdev-pricing-if-stale.mjs) and package.json commands to fetch and atomically write a trimmed pricing snapshot. Update README with runtime refresh behavior, env knobs, and maintainer commands. Implement runtime snapshot handling, refresh policy, health/state types, and atomic write/load paths in src/lib/modelsdev-pricing.ts; include bundled snapshot fallback and selection between bundled/runtime snapshots. Ship an updated bundled modelsdev-pricing.min.json with expanded provider/model entries and cache cost fields, add .emdash.json, and add/update tests related to pricing refresh and snapshot health.
@slkiser slkiser linked an issue Mar 3, 2026 that may be closed by this pull request
2 tasks
@slkiser slkiser merged commit 6f4175f into main Mar 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: miss claude-haiku-4-5 price

1 participant