@depup/ai-sdk__google 4.0.44-depup.0 → 4.0.45-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - bb0cf2e: fix(google): coerce minimal reasoning to low for Gemini 3.7 Flash
8
+
3
9
  ## 4.0.44
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/ai-sdk__google
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.44 |
17
- | Processed | 2026-08-14 |
16
+ | Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.45 |
17
+ | Processed | 2026-08-19 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-08-14T00:26:55.084Z",
3
+ "timestamp": "2026-08-19T00:14:27.664Z",
4
4
  "totalUpdated": 0
5
5
  }
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.44" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.45" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -2486,21 +2486,23 @@ function resolveThinkingConfig({
2486
2486
  return void 0;
2487
2487
  }
2488
2488
  if (getGoogleModelCapabilities(modelId).usesGemini3Features && !modelId.includes("gemini-3-pro-image")) {
2489
- return resolveGemini3ThinkingConfig({ reasoning, warnings });
2489
+ return resolveGemini3ThinkingConfig({ reasoning, modelId, warnings });
2490
2490
  }
2491
2491
  return resolveGemini25ThinkingConfig({ reasoning, modelId, warnings });
2492
2492
  }
2493
2493
  function resolveGemini3ThinkingConfig({
2494
2494
  reasoning,
2495
+ modelId,
2495
2496
  warnings
2496
2497
  }) {
2498
+ const minimumThinkingLevel = /(^|\/)gemini-3\.7-flash$/i.test(modelId) ? "low" : "minimal";
2497
2499
  if (reasoning === "none") {
2498
- return { thinkingLevel: "minimal" };
2500
+ return { thinkingLevel: minimumThinkingLevel };
2499
2501
  }
2500
2502
  const thinkingLevel = mapReasoningToProviderEffort({
2501
2503
  reasoning,
2502
2504
  effortMap: {
2503
- minimal: "minimal",
2505
+ minimal: minimumThinkingLevel,
2504
2506
  low: "low",
2505
2507
  medium: "medium",
2506
2508
  high: "high",