Преглед изворни кода

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

Co-authored-by: Copilot <[email protected]>
Tommy D. Rossi пре 3 месеци
родитељ
комит
9de1242d9b
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      packages/opencode/src/provider/transform.ts

+ 10 - 0
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,