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

Function googleThinkingVariants

packages/opencode/src/provider/transform.ts:655–671  ·  view source on GitHub ↗
(model: Provider.Model)

Source from the content-addressed store, hash-verified

653}
654
655function googleThinkingVariants(model: Provider.Model): Record<string, Record<string, any>> {
656 const id = model.api.id.toLowerCase()
657 if (id.includes("2.5")) {
658 return {
659 high: { thinkingConfig: { includeThoughts: true, thinkingBudget: 16000 } },
660 max: {
661 thinkingConfig: { includeThoughts: true, thinkingBudget: googleThinkingBudgetMax(id) },
662 },
663 }
664 }
665 return Object.fromEntries(
666 googleThinkingLevelEfforts(id).map((effort) => [
667 effort,
668 { thinkingConfig: { includeThoughts: true, thinkingLevel: effort } },
669 ]),
670 )
671}
672
673export function variants(model: Provider.Model): Record<string, Record<string, any>> {
674 if (!model.capabilities.reasoning) return {}

Callers 1

variantsFunction · 0.85

Calls 2

googleThinkingBudgetMaxFunction · 0.85

Tested by

no test coverage detected