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

Function endpointBaseURL

packages/llm/src/route/client.ts:122–123  ·  view source on GitHub ↗
(endpoint: Endpoint<Body>)

Source from the content-addressed store, hash-verified

120}
121
122const endpointBaseURL = <Body>(endpoint: Endpoint<Body>) =>
123 typeof endpoint.baseURL === "string" ? endpoint.baseURL : undefined
124
125const mergeHeaders = (...items: ReadonlyArray<Record<string, string> | undefined>) => {
126 const entries = items.flatMap((item) =>

Callers 1

makeRouteModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected