@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/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.3" : "0.0.0-test";
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;