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

Function configuredRoute

packages/llm/src/providers/google.ts:20–23  ·  view source on GitHub ↗
(input: Config)

Source from the content-addressed store, hash-verified

18}
19
20const configuredRoute = (input: Config) => {
21 const { apiKey: _, auth: _auth, baseURL, ...rest } = input
22 return Gemini.route.with({ ...rest, endpoint: { baseURL }, auth: auth(input) })
23}
24
25export const configure = (input: Config = {}) => {
26 const route = configuredRoute(input)

Callers 1

configureFunction · 0.70

Calls 2

withMethod · 0.80
authFunction · 0.70

Tested by

no test coverage detected