fix(provider): nest gateway google thinking options

This commit is contained in:
Aiden Cline
2026-06-30 15:43:00 -05:00
parent 996a0628ef
commit c7cbbda8f2
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -645,7 +645,7 @@ function effortVariant(model: Provider.Model, effort: ReasoningEffortValue) {
}
return { effort }
}
if (idIncludes(model, "google")) return { includeThoughts: true, thinkingLevel: effort }
if (idIncludes(model, "google")) return { thinkingConfig: { includeThoughts: true, thinkingLevel: effort } }
return { reasoningEffort: effort }
case "@ai-sdk/anthropic":