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

Method setModel

packages/node-sdk/src/session.ts:188–196  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

186 }
187
188 async setModel(model: string): Promise<void> {
189 this.ensureOpen();
190 const normalized = normalizeRequiredString(
191 model,
192 'Session model cannot be empty',
193 ErrorCodes.SESSION_MODEL_EMPTY,
194 );
195 await this.rpc.setModel({ sessionId: this.id, model: normalized });
196 }
197
198 async setThinking(effort: ThinkingEffort): Promise<void> {
199 this.ensureOpen();

Callers 8

setModelFunction · 0.45
mainFunction · 0.45
initMethod · 0.45
performModelSwitchFunction · 0.45
resolvePromptSessionFunction · 0.45

Calls 2

ensureOpenMethod · 0.95
normalizeRequiredStringFunction · 0.85

Tested by

no test coverage detected