Skip to content

feat: price and display the Codex Daybreak Blue model - #330

Merged
upsetbit merged 3 commits into
masterfrom
feat/gpt-daybreak-blue
Aug 24, 2026
Merged

feat: price and display the Codex Daybreak Blue model#330
upsetbit merged 3 commits into
masterfrom
feat/gpt-daybreak-blue

Conversation

@upsetbit

@upsetbit upsetbit commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for Codex's gpt-daybreak-blue-latest model — OpenAI's Daybreak program alias for gpt-5.6-sol. Sync, storage, CLI display, and filtering already handle any model id as an opaque string; the gaps were pricing (sessions showed tokens but no cost) and the panel label (would render as "GPT-daybreak Blue Latest").

  • internal/pricing: new gpt-daybreak-blue key sharing gpt-5.6-sol's rate periods (the -latest form resolves via the longest-prefix fallback). While researching the rate, the GPT-5.6 family entries turned out to be stale: Terra (−20%) and Luna (−80%) were cut on 2026-07-30, and Sol went on a promotional rate ($4/M in, $20/M out) on 2026-08-21 — both are now dated ratePeriods. Source: developers.openai.com/api/docs/pricing (short-context tier).
  • internal/panel: displayModel's GPT branch now title-cases the first segment (a no-op for numeric ids) and drops a trailing -latest, so the label reads GPT-Daybreak Blue (gpt-5-chat-latest tightens to "GPT-5 Chat"). Raw id still backs the hover/title attributes.

No importer, proto, server, store, or migration changes — the id flows through untouched.

Testing

  • just ci (tidy-check, gen-check, vet, lint, test-race, integration, build) passes.
  • New TestLookupPricesGPT56FamilyByDate covers pre/post-cut rates for Sol, Terra, Luna, and proves the Daybreak alias tracks Sol through every period; the known-store table gains both daybreak forms; TestDisplayModel gains the codename cases.
  • Verified end-to-end against a real Codex store in a throwaway PROSA_HOME: daybreak sessions import and price at the promo rate in prosa analytics usage_by_model.
  • Full stack (disposable Postgres + MinIO, prosa-server, push sync, prosa-panel with dev login) verified in the browser: "GPT-Daybreak Blue" in the Model share legend and session side panel, with per-session cost computed.

🤖 Generated with Claude Code

upsetbit and others added 3 commits August 24, 2026 17:41
The table carried launch pricing only. OpenAI cut Terra by 20% and Luna
by 80% on 2026-07-30, and put Sol on a promotional rate on 2026-08-21
(4/M in, 20/M out, running at least through 2026-11-21). Each entry now
has a dated ratePeriod; cache read stays 10% of input and cache write
1.25x input, per the official API pricing page. No reversion period for
the Sol promo until OpenAI actually ends it.

Source: developers.openai.com/api/docs/pricing (short-context tier; the
long-context surcharge is not modelled, same approximation as Gemini).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CRD7fqjWszvLzEnbXeDMa
gpt-daybreak-blue-latest is OpenAI's Daybreak program alias for
gpt-5.6-sol, and 61 real Codex sessions in the local store carry it.
The bare gpt-daybreak-blue key prices the -latest form (and any future
suffix) through the longest-prefix fallback; the key shares Sol's
ratePeriod slice so the alias can never drift from its target.

Source: developers.openai.com/api/docs/pricing, which documents
daybreak-blue-latest as currently pointing at gpt-5.6-sol.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CRD7fqjWszvLzEnbXeDMa
displayModel's GPT branch never title-cased the first segment because
every id so far started with a number; gpt-daybreak-blue-latest was the
first codename and rendered as "GPT-daybreak Blue Latest". The segment
now goes through titleWord (a no-op for numeric segments) and a trailing
-latest is stripped before splitting, so the label reads
"GPT-Daybreak Blue" and gpt-5-chat-latest tightens to "GPT-5 Chat".
The raw id still reaches the title/hover attributes untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CRD7fqjWszvLzEnbXeDMa
@upsetbit
upsetbit merged commit 5356180 into master Aug 24, 2026
5 checks passed
@upsetbit
upsetbit deleted the feat/gpt-daybreak-blue branch August 24, 2026 21:01
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