fix: refresh model pricing tables and smart-router aliases for current-gen models#65
Merged
Conversation
…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>
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.
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