@ai-sdk/google 3.0.3 → 3.0.5
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 +14 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "@ai-sdk/provider-utils";
|
|
8
8
|
|
|
9
9
|
// src/version.ts
|
|
10
|
-
var VERSION = true ? "3.0.
|
|
10
|
+
var VERSION = true ? "3.0.5" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -682,7 +682,7 @@ function prepareTools({
|
|
|
682
682
|
].some((id) => id === modelId);
|
|
683
683
|
const isGemini2orNewer = modelId.includes("gemini-2") || modelId.includes("gemini-3") || isLatest;
|
|
684
684
|
const supportsDynamicRetrieval = modelId.includes("gemini-1.5-flash") && !modelId.includes("-8b");
|
|
685
|
-
const supportsFileSearch = modelId.includes("gemini-2.5");
|
|
685
|
+
const supportsFileSearch = modelId.includes("gemini-2.5") || modelId.includes("gemini-3");
|
|
686
686
|
if (tools == null) {
|
|
687
687
|
return { tools: void 0, toolConfig: void 0, toolWarnings };
|
|
688
688
|
}
|
|
@@ -755,7 +755,7 @@ function prepareTools({
|
|
|
755
755
|
toolWarnings.push({
|
|
756
756
|
type: "unsupported",
|
|
757
757
|
feature: `provider-defined tool ${tool.id}`,
|
|
758
|
-
details: "The file search tool is only supported with Gemini 2.5 models."
|
|
758
|
+
details: "The file search tool is only supported with Gemini 2.5 models and Gemini 3 models."
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
break;
|