Skip to content

The open source coding agent.

TypeScript

fix: show reasoning summaries for gemini models (#4491)

Tommy D. Rossi9de1242d9b0b
diff --git a/packages/opencode/src/provider/transform.ts b/packages/opencode/src/provider/transform.ts
index 9a97df98029..5989fa2a14e 100644
--- a/packages/opencode/src/provider/transform.ts
+++ b/packages/opencode/src/provider/transform.ts
@@ -141,6 +141,12 @@ export namespace ProviderTransform {
result["promptCacheKey"] = sessionID
}
+ if (providerID === "google") {
+ result["thinkingConfig"] = {
+ includeThoughts: true,
+ }
+ }
+
if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
if (modelID.includes("codex")) {
result["store"] = false
@@ -178,6 +184,10 @@ export namespace ProviderTransform {
return {
["anthropic" as string]: options,
}
+ case "@ai-sdk/google":
+ return {
+ ["google" as string]: options,
+ }
case "@ai-sdk/gateway":
return {
["gateway" as string]: options,