Imported OpenAI models default to 128000 context window (GPT-6 capped 8x)
Author: fidelixCreated Sep 28, 2026Updated Sep 28, 2026
Imported OpenAI models default to 128000 context window (GPT-6 capped 8x)
When importing OpenAI models, any model without an explicit catalog entry falls back to context_length: 128000. For the GPT-6 family (Luna, Sol, Astra) this is wrong by ~8x (actual: 1,050,000 tokens), and it cascades: combos advertise min(members), so any combo containing an OpenAI route gets throttled to 128k too.
Evidence from /v1/models on a self-hosted instance (diegosouzapw/omniroute:next, 2026-09-28):
| route | advertised context_length |
actual (OpenAI docs / Azure / Bedrock) |
|---|---|---|
openai/gpt-6-luna |
128000 | 1,050,000 |
openai/gpt-6-sol |
128000 | 1,050,000 |
gpt-6-luna (combo, members codex/gpt-6-luna 872000 + openai/gpt-6-luna 128000) |
128000 | 1,050,000 |
128000 also happens to be GPT-6 Luna's max output tokens, which suggests the fallback either mirrored max output or applied a legacy 128k default.
Suggested fix:
- Update the built-in catalog for the GPT-6 family to
1050000context length so the importer assigns the correct value. - For newly imported chat models without an exact match, resolve context length from the model family / prefix catalog rather than falling back to 128k, so client compaction guards know the real window.
Source: diegosouzapw/OmniRoute