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

Function mergeOptions

packages/opencode/src/session/llm/request.ts:53–54  ·  view source on GitHub ↗
(target: Record<string, any>, source: Record<string, any> | undefined)

Source from the content-addressed store, hash-verified

51}
52
53const mergeOptions = (target: Record<string, any>, source: Record<string, any> | undefined): Record<string, any> =>
54 mergeDeep(target, source ?? {}) as Record<string, any>
55
56export const prepare = Effect.fn("LLMRequestPrep.prepare")(function* (input: PrepareInput) {
57 const isOpenaiOauth = input.provider.id === "openai" && input.auth?.type === "oauth"

Callers 1

request.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected