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 | |||
| 100 | 100 | ``` | |
| 101 | 101 | ||
| 102 | 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, | |
| 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 | |
| 106 | 108 | plan, rollout, and organization policy; catalog availability does not grant access. | |
| 107 | 109 | See the [OpenAI model specifications](https://developers.openai.com/api/docs/models/gpt-6-astra) | |
| 108 | 110 | 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 higher | 104 | + | 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 your | 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 | |||
| 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) { | |||
| 13 | 13 | if err != nil { | |
| 14 | 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 | 21 | t.Fatalf("unexpected model capabilities: %+v", m) | |
| 18 | 22 | } | |
| 19 | 23 | 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{ | |||
| 432 | 432 | }, | |
| 433 | 433 | { | |
| 434 | 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 | 436 | PriceInput: 10, PriceOutput: 50, PriceCacheRead: 1, PriceCacheWrite: 12.5, | |
| 437 | 437 | PriceTierInputTokens: 272000, | |
| 438 | 438 | 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, | ||