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

Function baseURL

packages/opencode/src/session/llm/native-request.ts:145–146  ·  view source on GitHub ↗
(input: Provider.Model | RequestInput)

Source from the content-addressed store, hash-verified

143}
144
145const baseURL = (input: Provider.Model | RequestInput) =>
146 "model" in input ? (input.baseURL ?? (input.model.api.url || undefined)) : input.api.url || undefined
147
148const requireBaseURL = (model: Provider.Model, url: string | undefined) => {
149 if (url) return url

Callers 1

modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected