Skip to content

feat: add GPT-6 family support (luna, sol, astra, 6.1-sol) - #582

Open
Siarhei-Yarkavy wants to merge 8 commits into
codemie-ai:mainfrom
Siarhei-Yarkavy:fix/gpt-6-luna-context-window
Open

Siarhei-Yarkavy wants to merge 8 commits into
codemie-ai:mainfrom
Siarhei-Yarkavy:fix/gpt-6-luna-context-window

Conversation

@Siarhei-Yarkavy

@Siarhei-Yarkavy Siarhei-Yarkavy commented Sep 26, 2026 •

Copy link
Copy Markdown

Summary

Full GPT-6 family support: luna, sol, astra and 6.1-sol report vendor-published limits instead of heuristic fallbacks.

Closes #581.

Changes

  • opencode dynamic/static model configs: gpt-6 family (luna/sol/astra/6.1-sol), 1050000/128000 limits, Responses API routing
  • VS Code capability table: gpt-6-luna/sol/astra and gpt-6.1-sol entries (922000 max input, 128000 max output)
  • Pi model list: gpt-6 limits and Responses classification
  • pricing.json: add gpt-6-1-sol row; correct gpt-6-astra cacheWrite (10 -> 12.5)
  • Updated/added tests for the new family

Pricing source

Short-context Standard rows verified against https://developers.openai.com/api/docs/pricing?latest-pricing=standard (Standard pricing table).

Impact

Before: gpt-6 models showed ~128k context / fallback capabilities via codemie-opencode and VS Code BYOK. After: vendor-published windows (1050000 in opencode/Pi, 922000 VS Code input), matching standalone opencode (models.dev).

Checklist

  • Self-reviewed
  • Manual testing performed (limit conversion verified for plain, vendor-prefixed and dated ids; unit/cli suites and typecheck, eslint clean)
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

Comment thread src/cli/commands/proxy/connectors/vscode-models.ts Outdated
Siarhei-Yarkavy added a commit to Siarhei-Yarkavy/codemie-code that referenced this pull request Sep 28, 2026
Address review on codemie-ai#582: gpt-6-luna/sol now use GPT_6_EFFORTS instead of GPT_5_6_EFFORTS. Same values, isolated for future divergence.
codemie-opencode overrode models.dev limits with heuristic defaults that had no gpt-6 branch, showing ~128k instead of the vendor-published 1050000.

Refs codemie-ai#581
Address review on codemie-ai#582: gpt-6-luna/sol now use GPT_6_EFFORTS instead of GPT_5_6_EFFORTS. Same values, isolated for future divergence.
Replace startsWith('gpt-6') || /gpt-6[.-]/ with /gpt-6(?!\d)/ so bare vendor-prefixed ids (openai.gpt-6) and dotted variants (gpt-6.1-sol, future 6.2+) route via Responses API with 1050000/128000 limits, while gpt-60-style ids stay out.
@Siarhei-Yarkavy
Siarhei-Yarkavy force-pushed the fix/gpt-6-luna-context-window branch from 1096df7 to bb3fe16 Compare October 4, 2026 18:21
maxOutputTokens: 128000,
},
{
family: 'gpt-6-sol',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only gpt-6-luna and gpt-6-sol were added here, but the family has a third model, gpt-6-astra, already priced in pricing.json. Compare with gpt-5.6, where all three variants (luna/sol/terra) were added to this same table together - gpt-6-astra is missing the same treatment, so it would hit the fallback (128000 instead of 922000) if selectable via VS Code BYOK.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add in a hour

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed — gpt-6-astra got the same treatment as the gpt-5.6 trio: added to VS_CODE_CAPABILITY_TABLE (922000/128000, Responses, GPT_6_EFFORTS), to static OPENCODE_MODEL_CONFIGS, and to the test fixtures. No more 128000 fallback. gpt-6.1-sol (shipped, no astra variant) got an entry too.

Also corrected pricing while at it, sourced from the vendor Standard table (short context) — https://developers.openai.com/api/docs/pricing?latest-pricing=standard

gpt-6-sol / gpt-6-luna rows already matched the vendor table, left untouched.

VS Code capability table: gpt-6-astra entry (922000/128000, Responses, GPT_6_EFFORTS) alongside luna/sol.

Addresses review thread r4183491171 in codemie-ai#582.
VS Code capability table: gpt-6.1-sol entry (922000/128000, Responses, GPT_6_EFFORTS); dotted family key per gpt-5.6 precedent, resolves dashed, vendor-prefixed and dated ids.

Static OpenCode config: 1050000/128000; cost and dates mirrored from gpt-6-sol pending vendor pricing verification (no pricing row for 6.1-sol yet; no 6.1-astra shipped).
Static OpenCode config cache_read 0.20 -> 0.1; add gpt-6-1-sol row to pricing.json (2/10/0.1/2.5, dashed key per file convention; dotted and dated ids resolve via normalizeModelName/snapshot).

Source: https://developers.openai.com/api/docs/pricing?latest-pricing=standard (Standard pricing table, row 'gpt-6.1-sol'). Supersedes the mirrored-from-gpt-6-sol placeholder in c751f5c.
cacheWrite 10 -> 12.5 per https://developers.openai.com/api/docs/pricing?latest-pricing=standard (Standard pricing table, row 'gpt-6-astra': short-context 0.00/.00/2.50/0.00). 10 was a mirrored-input error carried over from codemie-ai#583; real price is ~1.25x input like the other GPT-6 rows.
@Siarhei-Yarkavy Siarhei-Yarkavy changed the title fix: report 1050000-token window for GPT-6 Luna and Sol models feat: add GPT-6 family support (luna, sol, astra, 6.1-sol) Oct 5, 2026

This branch has not been deployed

No deployments
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(opencode): gpt-6-luna context shows ~128k instead of 1,050,000 via codemie-opencode

3 participants