From 10ade237cd40d7deccbcb8a00360ad76c738e209 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Sun, 24 May 2026 15:21:09 +0000 Subject: [PATCH] Hide Kimi seed and parallel_tool_calls controls (undocumented upstream) Kimi's official Chat Completion schema at https://platform.kimi.ai/docs/api/chat does not list seed or parallel_tool_calls. Hide both controls so users are not offered settings the upstream may silently drop or 400 on. Frequency penalty, presence penalty, and stop sequences remain exposed because Kimi documents them with full ranges. --- .../src/features/chat/provider-capabilities.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/studio/frontend/src/features/chat/provider-capabilities.ts b/studio/frontend/src/features/chat/provider-capabilities.ts index c64aa9ade8..7b439fb5ab 100644 --- a/studio/frontend/src/features/chat/provider-capabilities.ts +++ b/studio/frontend/src/features/chat/provider-capabilities.ts @@ -436,12 +436,15 @@ const PROVIDER_CAPABILITIES: Record = { }, mistral: OPENAI_COMPAT_BASE, gemini: OPENAI_COMPAT_BASE, - // Kimi k2.5/k2.6 are reasoning-class — the API locks temperature and - // top_p to fixed defaults and 400s on any other value: + // Kimi k2.5/k2.6 are reasoning-class; the API locks temperature + // and top_p to fixed defaults and 400s on any other value: // "invalid temperature: only 1 is allowed for this model". // Hide both sliders so the user is not offered knobs the model // silently overrides. Backend additionally strips these fields via - // PROVIDER_REGISTRY['kimi']['body_omit']. + // PROVIDER_REGISTRY['kimi']['body_omit']. seed and parallel_tool_ + // calls are not in Kimi's documented Chat Completion schema + // (https://platform.kimi.ai/docs/api/chat); hide them so users are + // not offered controls that the upstream may silently drop or 400. kimi: { temperature: false, topP: false, @@ -450,10 +453,10 @@ const PROVIDER_CAPABILITIES: Record = { repetitionPenalty: false, presencePenalty: true, frequencyPenalty: true, - seed: true, + seed: false, stop: true, serviceTier: false, - parallelToolCalls: true, + parallelToolCalls: false, }, // DeepSeek deprecated presence/frequency penalty in their current docs. deepseek: {