Skip to content
Open
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
3 changes: 3 additions & 0 deletions open-sse/providers/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export const PATTERN_CAPABILITIES = [
{ pattern: "*qwen*", caps: { reasoning: true, thinkingFormat: "qwen", contextWindow: 262144 } },

// ── Kimi (enabled→reasoning_effort; K2.7-code cannot disable) ─────
// K3 routes through bare upstream id `k3`; keep this before generic Kimi.
{ pattern: "*kimi*k3*", caps: { vision: true, videoInput: true, reasoning: true, thinkingFormat: "kimi", contextWindow: 1048576, maxOutput: 131072 } },
{ pattern: "k3", caps: { vision: true, videoInput: true, reasoning: true, thinkingFormat: "kimi", contextWindow: 1048576, maxOutput: 131072 } },
{ pattern: "*kimi*k2.7*code*", caps: { vision: true, reasoning: true, thinkingFormat: "kimi", thinkingCanDisable: false, contextWindow: 262144, maxOutput: 262144 } },
{ pattern: "*kimi*k2*", caps: { vision: true, reasoning: true, thinkingFormat: "kimi", contextWindow: 262144, maxOutput: 262144 } },
{ pattern: "*kimi*", caps: { reasoning: true, thinkingFormat: "kimi", contextWindow: 262144 } },
Expand Down
4 changes: 4 additions & 0 deletions tests/translator/thinking-unified.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ describe("applyThinking per provider format", () => {
const out = apply("openai", "kimi-k2.6", { reasoning_effort: "high" }, "kimi");
expect(out.reasoning_effort).toBe("high");
});
it("Kimi K3 keeps reasoning_effort after its alias resolves to bare k3", () => {
const out = apply("openai", "k3", { reasoning_effort: "high" }, "kimi");
expect(out.reasoning_effort).toBe("high");
});
it("Kimi auto → supported reasoning_effort", () => {
const out = apply("openai", "kimi-k2.7", { reasoning_effort: "auto" }, "kimchi");
expect(out.reasoning_effort).toBe("high");
Expand Down
15 changes: 15 additions & 0 deletions tests/unit/capabilities.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,19 @@ describe("getCapabilitiesForModel", () => {
expect(getCapabilitiesForModel("kiro", "gpt-5.6-luna-agentic")).toMatchObject(kiroGpt56Expected);
expect(getCapabilitiesForModel("kiro", "gpt-5.6-sol-thinking-agentic")).toMatchObject(kiroGpt56Expected);
});

it("keeps Kimi K3 capabilities after its alias resolves to bare k3", () => {
const expected = {
vision: true,
videoInput: true,
reasoning: true,
thinkingFormat: "kimi",
contextWindow: 1048576,
maxOutput: 131072,
};

expect(getCapabilitiesForModel("kimi", "kimi-k3")).toMatchObject(expected);
expect(getCapabilitiesForModel("kimi", "k3")).toMatchObject(expected);
expect(getCapabilitiesForModel("kimi", "k3.5").reasoning).toBe(false);
});
});