MCPcopy Create free account
hub / github.com/anomalyco/opencode / configuredModel

Function configuredModel

packages/app/src/context/local.tsx:149–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 })
148
149 const configuredModel = () => {
150 const configured = sync().data.config.model
151 if (!configured) return
152 const [providerID, modelID] = configured.split("/")
153 const model = { providerID, modelID }
154 if (validModel(model)) return model
155 }
156
157 const recentModel = () => {
158 for (const item of models.recent.list()) {

Callers 1

local.tsxFile · 0.85

Calls 2

validModelFunction · 0.85
syncFunction · 0.70

Tested by

no test coverage detected