@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 +6 -0
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +5 -3
- package/dist/internal/index.js.map +1 -1
- package/docs/15-google.mdx +36 -36
- package/package.json +3 -3
- package/src/google-language-model.ts +9 -3
package/CHANGELOG.md
CHANGED
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.
|
|
17
|
-
| Processed | 2026-08-
|
|
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
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.
|
|
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:
|
|
2500
|
+
return { thinkingLevel: minimumThinkingLevel };
|
|
2499
2501
|
}
|
|
2500
2502
|
const thinkingLevel = mapReasoningToProviderEffort({
|
|
2501
2503
|
reasoning,
|
|
2502
2504
|
effortMap: {
|
|
2503
|
-
minimal:
|
|
2505
|
+
minimal: minimumThinkingLevel,
|
|
2504
2506
|
low: "low",
|
|
2505
2507
|
medium: "medium",
|
|
2506
2508
|
high: "high",
|