Skip to content

Commit ceb9619

Browse files
authored
Merge pull request #13 from GonkaGate/codex/add-kimi-k2.6-model
Codex/add kimi k2.6 model
2 parents 265f345 + 9a444e0 commit ceb9619

7 files changed

Lines changed: 24 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44

5+
- Added curated model support for `kimi-k2.6` -> `moonshotai/Kimi-K2.6` in the installer model picker and docs.
56
- Made local alias package bootstrap publish without npm provenance because provenance requires a supported CI/OIDC provider.
67
- Made alias package publishing skip cleanly until `@gonkagate/claude-code-setup` is bootstrapped on npm, with an explicit override for the first package publish.
78
- Added `@gonkagate/claude-code-setup` as a setup-style alias for the existing Claude Code installer.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ You need:
5454
- Node.js 18+
5555
- a GonkaGate API key
5656

57-
## Supported Model
57+
## Supported Models
5858

59-
Current public Claude Code model in the curated registry:
59+
Current public Claude Code models in the curated registry:
6060

6161
- `qwen3-235b` -> `qwen/qwen3-235b-a22b-instruct-2507-fp8`
62+
- `kimi-k2.6` -> `moonshotai/Kimi-K2.6` (default)
6263

6364
## What It Does
6465

docs/how-it-works.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ These values are intentionally fixed by the installer:
1212
- Auth variable: `ANTHROPIC_AUTH_TOKEN`
1313
- Model selection comes only from a curated in-repo allowlist
1414

15-
Today the curated public Claude Code model registry contains one supported entry:
15+
Today the curated public Claude Code model registry contains:
1616

17-
- `qwen3-235b` -> `qwen/qwen3-235b-a22b-instruct-2507-fp8` (default, current only option)
17+
- `qwen3-235b` -> `qwen/qwen3-235b-a22b-instruct-2507-fp8`
18+
- `kimi-k2.6` -> `moonshotai/Kimi-K2.6` (default)
1819

1920
Users provide only:
2021

docs/troubleshooting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ The installer writes Claude Code settings, but an existing direct login can stil
1414

1515
This installer writes the selected model from its curated GonkaGate-supported registry.
1616

17-
Today that curated list contains one option:
17+
Today that curated list contains:
1818

1919
- `qwen3-235b` -> `qwen/qwen3-235b-a22b-instruct-2507-fp8`
20+
- `kimi-k2.6` -> `moonshotai/Kimi-K2.6` (default)
2021

2122
If that model is unavailable, the likely cause is a backend deployment or model availability mismatch. This installer does not expose custom base URL or arbitrary custom model overrides, so the right next step is GonkaGate support or the backend troubleshooting docs in `gonka-proxy`.
2223

src/constants/models.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ const curatedModelRegistry = [
1212
displayName: "Qwen 3 235B Instruct",
1313
modelId: "qwen/qwen3-235b-a22b-instruct-2507-fp8",
1414
description: "Current GonkaGate public Claude Code model.",
15+
isDefault: false
16+
},
17+
{
18+
key: "kimi-k2.6",
19+
displayName: "MoonshotAI Kimi K2.6",
20+
modelId: "moonshotai/Kimi-K2.6",
21+
description: "GonkaGate public Claude Code model.",
1522
isDefault: true
1623
}
1724
] as const satisfies readonly SupportedModelDefinition[];

src/install/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function buildModelPromptConfig(
126126
value: model.key,
127127
name: model.displayName,
128128
short: model.key,
129-
description: model.description ? `${model.description} Model ID: ${model.modelId}` : `Model ID: ${model.modelId}`
129+
description: `${model.description ? `${model.description} ` : ""}Model ID: ${model.modelId}`
130130
})),
131131
pageSize: Math.min(models.length, 8),
132132
loop: false,

test/install.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { buildModelPromptConfig, buildTrackedLocalSettingsPromptConfig, promptFo
1414
import { validateApiKey } from "../src/install/validate-api-key.js";
1515
import { writeSettings } from "../src/install/write-settings.js";
1616
import { CLAUDE_SETTINGS_SCHEMA_URL, GONKAGATE_BASE_URL } from "../src/constants/gateway.js";
17-
import { DEFAULT_MODEL, DEFAULT_MODEL_KEY } from "../src/constants/models.js";
17+
import { DEFAULT_MODEL, DEFAULT_MODEL_KEY, requireSupportedModel } from "../src/constants/models.js";
1818

1919
test("mergeSettingsWithGonkaEnv preserves unrelated settings and updates gateway env", () => {
2020
const merged = mergeSettingsWithGonkaEnv(
@@ -81,6 +81,12 @@ test("parseArgs accepts supported --model values and rejects unsupported ones",
8181
assert.throws(() => parseCliOptions(["--model", "not-supported"], silentOutput), /Allowed choices are/);
8282
});
8383

84+
test("supported model registry includes kimi-k2.6", () => {
85+
const model = requireSupportedModel("kimi-k2.6");
86+
87+
assert.equal(model.modelId, "moonshotai/Kimi-K2.6");
88+
});
89+
8490
test("loadSettings rejects invalid JSON instead of overwriting it", async () => {
8591
const directory = await mkdtemp(path.join(tmpdir(), "gonkagate-invalid-json-"));
8692
const filePath = path.join(directory, "settings.json");

0 commit comments

Comments
 (0)