fix(ai): expose max thinking for Kimi Coding K3

Closes #6737
This commit is contained in:
Armin Ronacher
2026-07-16 19:58:17 +02:00
parent f7e0603745
commit 78ff249436
4 changed files with 14 additions and 1 deletions
+3 -1
View File
@@ -1627,6 +1627,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
const normalizedId = kimiAliases.has(modelId) ? "kimi-for-coding" : modelId;
const normalizedName = kimiAliases.has(modelId) ? "Kimi For Coding" : m.name || normalizedId;
const isKimiK3 = normalizedId === "k3";
models.push({
id: normalizedId,
@@ -1636,7 +1637,8 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
// Kimi For Coding's Anthropic-compatible API - SDK appends /v1/messages
baseUrl: "https://api.kimi.com/coding",
headers: { ...KIMI_STATIC_HEADERS },
reasoning: m.reasoning === true,
reasoning: isKimiK3 || m.reasoning === true,
...(isKimiK3 ? { thinkingLevelMap: KIMI_K3_THINKING_LEVEL_MAP } : {}),
input: m.modalities?.input?.includes("image") ? ["text", "image"] : ["text"],
cost: {
input: m.cost?.input || 0,