| 649 | // SAP's Zod schema drops unknown top-level keys; reasoning controls survive |
| 650 | // only via `modelParams` (catchall), forwarded verbatim by the SAP SDKs. |
| 651 | function 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 | |
| 655 | function googleThinkingVariants(model: Provider.Model): Record<string, Record<string, any>> { |
| 656 | const id = model.api.id.toLowerCase() |