Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/domain/models/models-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@ const CODEX_DYNAMIC_GPT_VERSION_THRESHOLD = 5.4;

// ChatGPT Codex limits are smaller than the public API limits. Match OpenCode
// OAuth metadata so clients compact before the backend runs out of output room:
// https://github.com/anomalyco/opencode/blob/4a57013cf8cb163f58638273fd9da8538cd33cb7/packages/opencode/src/plugin/openai/codex.ts#L293-L312
// https://github.com/anomalyco/opencode/blob/400a6f2afab628103f8a41df9b1037d240e79fed/packages/opencode/src/plugin/openai/codex.ts#L299-L309
const CODEX_MODEL_LIMIT_OVERRIDES: Record<string, JsonObject> = {
"gpt-5.5": {
context: 400_000,
input: 272_000,
output: 128_000,
},
"gpt-5.6-luna": {
context: 500_000,
input: 372_000,
context: 400_000,
input: 272_000,
output: 128_000,
},
"gpt-5.6-sol": {
context: 500_000,
input: 372_000,
context: 400_000,
input: 272_000,
output: 128_000,
},
"gpt-5.6-terra": {
context: 500_000,
input: 372_000,
context: 400_000,
input: 272_000,
output: 128_000,
},
};
Expand Down
4 changes: 2 additions & 2 deletions tests/domain/models-dev-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ describe("models registry contract", () => {
models?: Record<string, { limit?: unknown }>;
};
expect(kleis.models?.["gpt-5.6-luna"]?.limit).toEqual({
context: 500_000,
input: 372_000,
context: 400_000,
input: 272_000,
output: 128_000,
});
});
Expand Down