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

Function setModel

packages/opencode-atomic-hooks/src/session.ts:203–207  ·  view source on GitHub ↗
(id: string, provider?: string, model?: string)

Source from the content-addressed store, hash-verified

201 }
202
203 function setModel(id: string, provider?: string, model?: string): void {
204 const session = get(id)
205 if (provider) session.provider = provider
206 if (model) session.model = model
207 }
208
209 function setPrompt(id: string, prompt: string): void {
210 if (!prompt) return

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected