MCPcopy Create free account
hub / github.com/tiann/hapi / setModel

Method setModel

web/src/api/client.ts:500–505  ·  view source on GitHub ↗
(sessionId: string, model: string | null)

Source from the content-addressed store, hash-verified

498 }
499
500 async setModel(sessionId: string, model: string | null): Promise<void> {
501 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/model`, {
502 method: 'POST',
503 body: JSON.stringify({ model })
504 })
505 }
506
507 async setModelReasoningEffort(sessionId: string, modelReasoningEffort: string | null): Promise<void> {
508 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/model-reasoning-effort`, {

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected