MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / forcedThinking

Function forcedThinking

packages/oauth/src/managed-kimi-code.ts:650–657  ·  view source on GitHub ↗
(
  model: ManagedKimiCodeModelInfo | undefined,
  fallback: boolean,
)

Source from the content-addressed store, hash-verified

648// must never end up with thinking off, and a non-thinking model ('no') must
649// never end up with thinking on.
650function forcedThinking(
651 model: ManagedKimiCodeModelInfo | undefined,
652 fallback: boolean,
653): boolean {
654 if (model?.supportsThinkingType === 'only') return true;
655 if (model?.supportsThinkingType === 'no') return false;
656 return fallback;
657}
658
659function selectDefaultModel(
660 config: ManagedKimiConfigShape,

Callers 1

selectDefaultModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected