MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / setModel

Method setModel

packages/opencode-atomic-hooks/src/session.ts:122–122  ·  view source on GitHub ↗

* Update the model and provider for a session. * * Called from the `chat.message` hook when model info is available. * Only updates fields that are non-empty — passing `undefined` * preserves the existing value. * * @param id - Session ID * @param provider - Provider ident

(id: string, provider?: string, model?: string)

Source from the content-addressed store, hash-verified

120 * @param model - Model identifier (e.g., "claude-sonnet-4-20250514")
121 */
122 setModel(id: string, provider?: string, model?: string): void
123
124 /**
125 * Store the most recent user prompt for a session.

Callers 2

createChatHandlerFunction · 0.80
session.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected