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

Function parseModel

packages/tui/src/context/local.tsx:27–33  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

25}
26
27export function parseModel(model: string) {
28 const [providerID, ...rest] = model.split("/")
29 return {
30 providerID: providerID,
31 modelID: rest.join("/"),
32 }
33}
34
35export function recentModels(
36 model: { providerID: string; modelID: string },

Callers 2

local.test.tsFile · 0.90
createModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected