detached 6e28dd2

Fix GPT-6 Astra Codex context limit

commit
6e28dd276d5bbd61683e34156ef9d20c62f9ce0e
author
patriceckhart · · 2026-09-05 05:47 UTC
parent
7430103
signature
unsigned
3 files · +11 -5
M docs/providers.md +5 -3
@@ -100,9 +100,11 @@ zot --provider github-copilot --model gpt-6-astra
100100 ```
101101
102102 Astra uses the Responses API and supports `low`, `medium`, `high`, `xhigh`,
103-and `max` reasoning. The catalog includes its 1,050,000-token context window,
104-128,000-token output limit, and standard token prices, including the higher
105-rates for prompts above 272,000 tokens. Subscription access depends on your
103+and `max` reasoning. Public API and Copilot catalog entries include its
104+1,050,000-token context window; the OpenAI Codex subscription entry uses the
105+backend's 272,000-token default. All entries include the 128,000-token output
106+limit and standard token prices, including the higher rates for prompts above
107+272,000 tokens. Subscription access depends on your
106108 plan, rollout, and organization policy; catalog availability does not grant access.
107109 See the [OpenAI model specifications](https://developers.openai.com/api/docs/models/gpt-6-astra)
108110 and [GitHub Copilot availability](https://github.blog/changelog/2026-09-04-gpt-6-astra-is-generally-available-in-github-copilot/).
@@ -100,9 +100,11 @@ zot --provider github-copilot --model gpt-6-astra
100 ```100 ```
101 101
102 Astra uses the Responses API and supports `low`, `medium`, `high`, `xhigh`,102 Astra uses the Responses API and supports `low`, `medium`, `high`, `xhigh`,
103-and `max` reasoning. The catalog includes its 1,050,000-token context window,103+and `max` reasoning. Public API and Copilot catalog entries include its
104-128,000-token output limit, and standard token prices, including the higher104+1,050,000-token context window; the OpenAI Codex subscription entry uses the
105-rates for prompts above 272,000 tokens. Subscription access depends on your105+backend's 272,000-token default. All entries include the 128,000-token output
106+limit and standard token prices, including the higher rates for prompts above
107+272,000 tokens. Subscription access depends on your
106 plan, rollout, and organization policy; catalog availability does not grant access.108 plan, rollout, and organization policy; catalog availability does not grant access.
107 See the [OpenAI model specifications](https://developers.openai.com/api/docs/models/gpt-6-astra)109 See the [OpenAI model specifications](https://developers.openai.com/api/docs/models/gpt-6-astra)
108 and [GitHub Copilot availability](https://github.blog/changelog/2026-09-04-gpt-6-astra-is-generally-available-in-github-copilot/).110 and [GitHub Copilot availability](https://github.blog/changelog/2026-09-04-gpt-6-astra-is-generally-available-in-github-copilot/).
M packages/provider/gpt6_astra_test.go +5 -1
@@ -13,7 +13,11 @@ func TestGPT6AstraCatalog(t *testing.T) {
1313 if err != nil {
1414 t.Fatal(err)
1515 }
16- if m.API != APIResponses || m.ContextWindow != 1050000 || m.MaxOutput != 128000 || !m.Reasoning || m.Speculative {
16+ wantContext := 1050000
17+ if name == "openai-codex" {
18+ wantContext = 272000
19+ }
20+ if m.API != APIResponses || m.ContextWindow != wantContext || m.MaxOutput != 128000 || !m.Reasoning || m.Speculative {
1721 t.Fatalf("unexpected model capabilities: %+v", m)
1822 }
1923 if m.PriceInput != 10 || m.PriceOutput != 50 || m.PriceCacheRead != 1 || m.PriceCacheWrite != 12.5 {
@@ -13,7 +13,11 @@ func TestGPT6AstraCatalog(t *testing.T) {
13 if err != nil {13 if err != nil {
14 t.Fatal(err)14 t.Fatal(err)
15 }15 }
16- if m.API != APIResponses || m.ContextWindow != 1050000 || m.MaxOutput != 128000 || !m.Reasoning || m.Speculative {16+ wantContext := 1050000
17+ if name == "openai-codex" {
18+ wantContext = 272000
19+ }
20+ if m.API != APIResponses || m.ContextWindow != wantContext || m.MaxOutput != 128000 || !m.Reasoning || m.Speculative {
17 t.Fatalf("unexpected model capabilities: %+v", m)21 t.Fatalf("unexpected model capabilities: %+v", m)
18 }22 }
19 if m.PriceInput != 10 || m.PriceOutput != 50 || m.PriceCacheRead != 1 || m.PriceCacheWrite != 12.5 {23 if m.PriceInput != 10 || m.PriceOutput != 50 || m.PriceCacheRead != 1 || m.PriceCacheWrite != 12.5 {
M packages/provider/models.go +1 -1
@@ -432,7 +432,7 @@ var Catalog = []Model{
432432 },
433433 {
434434 Provider: "openai-codex", ID: "gpt-6-astra", DisplayName: "GPT-6 Astra", API: APIResponses,
435- ContextWindow: 1050000, MaxOutput: 128000, Reasoning: true,
435+ ContextWindow: 272000, MaxOutput: 128000, Reasoning: true,
436436 PriceInput: 10, PriceOutput: 50, PriceCacheRead: 1, PriceCacheWrite: 12.5,
437437 PriceTierInputTokens: 272000,
438438 PriceInputAbove: 20, PriceOutputAbove: 75, PriceCacheReadAbove: 2, PriceCacheWriteAbove: 25,
@@ -432,7 +432,7 @@ var Catalog = []Model{
432 },432 },
433 {433 {
434 Provider: "openai-codex", ID: "gpt-6-astra", DisplayName: "GPT-6 Astra", API: APIResponses,434 Provider: "openai-codex", ID: "gpt-6-astra", DisplayName: "GPT-6 Astra", API: APIResponses,
435- ContextWindow: 1050000, MaxOutput: 128000, Reasoning: true,435+ ContextWindow: 272000, MaxOutput: 128000, Reasoning: true,
436 PriceInput: 10, PriceOutput: 50, PriceCacheRead: 1, PriceCacheWrite: 12.5,436 PriceInput: 10, PriceOutput: 50, PriceCacheRead: 1, PriceCacheWrite: 12.5,
437 PriceTierInputTokens: 272000,437 PriceTierInputTokens: 272000,
438 PriceInputAbove: 20, PriceOutputAbove: 75, PriceCacheReadAbove: 2, PriceCacheWriteAbove: 25,438 PriceInputAbove: 20, PriceOutputAbove: 75, PriceCacheReadAbove: 2, PriceCacheWriteAbove: 25,

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close