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
5 changes: 5 additions & 0 deletions .changeset/exact-gpt-subscription.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---

Exclude GPT-5.6 from models available through ChatGPT subscriptions while retaining access to variants such as GPT-5.6 Sol.
2 changes: 1 addition & 1 deletion packages/opencode/src/plugin/openai/codex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ALLOWED_MODELS = new Set([
// kilocode_change end
])
// kilocode_change start
const DISALLOWED_MODELS = new Set(["gpt-5.5-pro"])
const DISALLOWED_MODELS = new Set(["gpt-5.5-pro", "gpt-5.6"])
// kilocode_change end

interface PkceCodes {
Expand Down
10 changes: 10 additions & 0 deletions packages/opencode/test/plugin/codex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ describe("plugin.codex", () => {
id: "gpt-5.5",
api: { id: "gpt-5.5" },
} as never,
"gpt-5.6": {
id: "gpt-5.6",
api: { id: "gpt-5.6" },
} as never,
"gpt-5.6-sol": {
id: "gpt-5.6-sol",
api: { id: "gpt-5.6-sol" },
} as never,
"gpt-5.4-mini": {
id: "gpt-5.4-mini",
api: { id: "gpt-5.4-mini" },
Expand All @@ -164,6 +172,8 @@ describe("plugin.codex", () => {
} as never, { auth: { type: "oauth" } } as never)
expect(provider).not.toHaveProperty(["gpt-5.5-pro"])
expect(provider).toHaveProperty(["gpt-5.5"])
expect(provider).not.toHaveProperty(["gpt-5.6"])
expect(provider).toHaveProperty(["gpt-5.6-sol"])
expect(provider).toHaveProperty(["gpt-5.4-mini"])
expect(provider).toHaveProperty(["gpt-5.1-codex"])
expect(provider).not.toHaveProperty(["other-model"])
Expand Down
Loading