Skip to content

fix: refresh model pricing tables and smart-router aliases for current-gen models#65

Merged
mbanderas merged 6 commits into
mainfrom
fix/model-pricing-refresh
Jun 15, 2026
Merged

fix: refresh model pricing tables and smart-router aliases for current-gen models#65
mbanderas merged 6 commits into
mainfrom
fix/model-pricing-refresh

Conversation

@mbanderas

Copy link
Copy Markdown
Contributor

What

Refreshes the open-source default pricing table and smart-router aliases to current-generation models.

src/pricing.ts (per-million defaults; existing entries kept)

Added: claude-opus-4-8 (5/25), claude-sonnet-4-6 (3/15), claude-haiku-4-5 (1/5), claude-fable-5 (10/50), gpt-5.5 (5/30), gpt-5.4 (2.5/15), gpt-5.4-mini (0.75/4.5), gpt-5.4-nano (0.2/1.25).

templates/policies/smart-model-routing.yaml

Replaced stale/invalid aliases. Anthropic: cheap=claude-haiku-4-5, standard=claude-sonnet-4-6, premium=claude-opus-4-8. OpenAI: cheap=gpt-5.4-nano, standard=gpt-5.4-mini, premium=gpt-5.5. Every alias target exists in the pricing table.

templates/policies/cost-conscious.yaml

cheap=claude-haiku-4-5, standard=claude-sonnet-4-6.

tests

pricing.test.ts + policy-templates.test.ts updated for the new ids.

Price sources: Anthropic per claude-api reference; OpenAI per official pricing page.

tsc clean; vitest 772/0.

🤖 Generated with Claude Code

mbanderas and others added 6 commits June 14, 2026 23:25
…t-gen models

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…est audit advisories

Upgrades vitest ^3.0.4 -> ^4.1.8 (pulls vite 8.x, vite-node 5.x, esbuild 0.25.x).
Also resolves tsx (->4.22.4), postcss (->8.5.15), brace-expansion (->5.0.6) vulns.
npm audit --audit-level=high now exits 0; 772 tests pass unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolves EUSAGE failure in CI: @emnapi/wasi-threads bumped 1.2.1->1.2.2,
@emnapi/core and @emnapi/runtime added as explicit transitive entries.
npm ci now succeeds from a clean state; 772 tests pass, 0 high vulns.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Regenerated package-lock.json on Linux (node:20) so the vite 8 / vitest 4
rolldown native bindings (@emnapi 1.11.1) are recorded; Windows-generated
lockfile omitted them, breaking `npm ci` on the Linux CI runner.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…pin clock in timeseries test

- Bump vite 6->8.0.16 and @vitejs/plugin-react 4->6.0.2 to clear esbuild high severity advisory
- react-router-dom 7.3->7.14.2 (via npm audit fix) clears 6 react-router RCE/XSS/redirect/DoS highs
- postcss updated to >=8.5.10 clearing moderate XSS advisory
- Pin Date clock to 2026-06-15T15:00:00Z in timeseries test so now-1h/now-2h always fall
  within "today" and yield >=3 hourly buckets regardless of wall-clock time at run

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Dashboard react-router/vite upgrade lockfile regenerated under node:20 Linux
so the vite 8 native optional deps are recorded; the Windows-generated lock
omitted them and broke `npm --prefix dashboard ci` on the CI runner.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mbanderas mbanderas merged commit 8711c17 into main Jun 15, 2026
12 checks passed
@mbanderas mbanderas deleted the fix/model-pricing-refresh branch June 15, 2026 00:39
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.

1 participant