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

Function normalizeApi

packages/core/src/catalog.ts:99–103  ·  view source on GitHub ↗
(item: ProviderV2.MutableInfo | ModelV2.MutableInfo)

Source from the content-addressed store, hash-verified

97 }
98
99 const normalizeApi = (item: ProviderV2.MutableInfo | ModelV2.MutableInfo) => {
100 if (typeof item.request.body.baseURL !== "string") return
101 item.api.url = item.request.body.baseURL
102 delete item.request.body.baseURL
103 }
104
105 const state = State.create<Data, Draft>({
106 initial: () => ({ providers: new Map() }),

Callers 1

catalog.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected