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

Method thinkingOnEffort

packages/acp-adapter/src/session.ts:398–402  ·  view source on GitHub ↗

* The effort to send when the ACP thinking toggle flips on: the current * model's declared default effort (or middle `support_efforts`), falling * back to `'on'` for boolean models or when the catalog is unavailable * (harness-less unit tests). The `always_thinking` constraint is enforced

()

Source from the content-addressed store, hash-verified

396 * explicit off request here.
397 */
398 private async thinkingOnEffort(): Promise<string> {
399 if (!this.harness) return 'on';
400 const models = await listModelsFromHarness(this.harness);
401 return models.find((m) => m.id === this.currentModelIdInternal)?.defaultThinkingEffort ?? 'on';
402 }
403
404 /**
405 * Forward an ACP `session/set_mode` request to the underlying SDK

Callers 2

setModelMethod · 0.95
setThinkingMethod · 0.95

Calls 1

listModelsFromHarnessFunction · 0.90

Tested by

no test coverage detected