MCPcopy Index your code
hub / github.com/anomalyco/opencode / wrapInSapModelParams

Function wrapInSapModelParams

packages/opencode/src/provider/transform.ts:651–653  ·  view source on GitHub ↗
(variants: Record<string, Record<string, any>>)

Source from the content-addressed store, hash-verified

649// SAP's Zod schema drops unknown top-level keys; reasoning controls survive
650// only via `modelParams` (catchall), forwarded verbatim by the SAP SDKs.
651function wrapInSapModelParams(variants: Record<string, Record<string, any>>): Record<string, Record<string, any>> {
652 return Object.fromEntries(Object.entries(variants).map(([k, v]) => [k, { modelParams: v }]))
653}
654
655function googleThinkingVariants(model: Provider.Model): Record<string, Record<string, any>> {
656 const id = model.api.id.toLowerCase()

Callers 1

variantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected