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

Function tierKey

packages/core/src/plugin/models-dev.ts:57–57  ·  view source on GitHub ↗
(item: ModelV2Info["cost"][number])

Source from the content-addressed store, hash-verified

55 const [baseDefault, ...baseTiers] = base
56 const [nextDefault, ...nextTiers] = next
57 const tierKey = (item: ModelV2Info["cost"][number]) => `${item.tier?.type ?? "base"}:${item.tier?.size ?? 0}`
58 const merge = (left: ModelV2Info["cost"][number], right: ModelV2Info["cost"][number]) => ({
59 ...left,
60 ...right,

Callers 1

mergeCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected