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

Function recentModel

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

Source from the content-addressed store, hash-verified

155 }
156
157 const recentModel = () => {
158 for (const item of models.recent.list()) {
159 if (validModel(item)) return item
160 }
161 }
162
163 const defaultModel = () => {
164 const defaults = providers.default()

Callers 1

local.tsxFile · 0.85

Calls 2

validModelFunction · 0.85
listMethod · 0.65

Tested by

no test coverage detected