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

Function apiName

packages/core/src/session/runner/model.ts:128–129  ·  view source on GitHub ↗
(model: ModelV2.Info)

Source from the content-addressed store, hash-verified

126}
127
128const apiName = (model: ModelV2.Info) =>
129 model.api.type === "aisdk" ? `${model.api.type}:${model.api.package}` : model.api.type
130
131export const fromCatalogModel = (
132 model: ModelV2.Info,

Callers 1

fromCatalogModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected