Skip to content

[codex] Add pricing alias registry - #48

Merged
raychrisgdp merged 1 commit into
mainfrom
issue-16-pricing-alias-registry
Jun 25, 2026
Merged

[codex] Add pricing alias registry#48
raychrisgdp merged 1 commit into
mainfrom
issue-16-pricing-alias-registry

Conversation

@raychrisgdp

Copy link
Copy Markdown
Owner

Summary

Adds a maintainable pricing alias registry so local model IDs can resolve to canonical OpenRouter pricing IDs instead of silently showing unpriced costs.

What changed

  • Centralized pricing alias resolution in dashboard/pricing.py.
  • Added target aliases for Codex Spark and observed Antigravity Gemini model IDs.
  • Preserved explicit unpriced status for free-suffixed models without a registered alias.
  • Added pricing_url metadata for API-equivalent pricing references.
  • Linked priced Model Breakdown cost values to their OpenRouter model reference pages.
  • Added Hermes model reference URLs for session-accounted costs when the model ID can be resolved.
  • Expanded tests for alias resolution, URL exposure, and UI link rendering.

Review focus

  • Confirm the alias decisions, especially google/antigravity-gemini-3.1-pro* -> google/gemini-3.1-pro-preview.
  • Confirm that OpenRouter model pages are the right URL references for priced cost cells.
  • Confirm unpriced/free-suffixed rows remain honestly unpriced rather than guessed.

Validation

  • uv sync
  • uv run python -m unittest tests.test_app tests.test_readme -v
  • uv run python -m py_compile app.py scripts/snapshot_dashboard.py
  • scripts/review.sh
  • Rendered the local dashboard at http://127.0.0.1:8336/ and verified priced rows have cost links; the DOM check returned pricedWithoutHref: [].

@raychrisgdp raychrisgdp self-assigned this Jun 25, 2026
@raychrisgdp
raychrisgdp marked this pull request as ready for review June 25, 2026 15:42
@raychrisgdp
raychrisgdp merged commit 1eae147 into main Jun 25, 2026
1 check passed
@raychrisgdp
raychrisgdp deleted the issue-16-pricing-alias-registry branch June 26, 2026 03: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