chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-03 23:42:15 +00:00
parent 0b796c5f3d
commit 04b38ce830

View File

@@ -613,9 +613,7 @@ function googleThinkingBudgetMax(apiId: string) {
// SAP's Zod schema drops unknown top-level keys; reasoning controls survive // SAP's Zod schema drops unknown top-level keys; reasoning controls survive
// only via `modelParams` (catchall), forwarded verbatim by the SAP SDKs. // only via `modelParams` (catchall), forwarded verbatim by the SAP SDKs.
function wrapInSapModelParams( function wrapInSapModelParams(variants: Record<string, Record<string, any>>): Record<string, Record<string, any>> {
variants: Record<string, Record<string, any>>,
): Record<string, Record<string, any>> {
return Object.fromEntries(Object.entries(variants).map(([k, v]) => [k, { modelParams: v }])) return Object.fromEntries(Object.entries(variants).map(([k, v]) => [k, { modelParams: v }]))
} }
@@ -995,14 +993,10 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
} }
if (id.includes("gpt") || /\bo[1-9]/.test(id)) { if (id.includes("gpt") || /\bo[1-9]/.test(id)) {
const efforts = openaiReasoningEfforts(id, model.release_date) const efforts = openaiReasoningEfforts(id, model.release_date)
return wrapInSapModelParams( return wrapInSapModelParams(Object.fromEntries(efforts.map((effort) => [effort, { reasoning_effort: effort }])))
Object.fromEntries(efforts.map((effort) => [effort, { reasoning_effort: effort }])),
)
} }
return wrapInSapModelParams( return wrapInSapModelParams(
Object.fromEntries( Object.fromEntries(["low", "medium", "high"].map((effort) => [effort, { reasoning_effort: effort }])),
["low", "medium", "high"].map((effort) => [effort, { reasoning_effort: effort }]),
),
) )
} }
} }