@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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 3be4d81: Add file support for Gemini 3 models
8
+
9
+ ## 3.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [d937c8f]
14
+ - @ai-sdk/provider@3.0.2
15
+ - @ai-sdk/provider-utils@4.0.4
16
+
3
17
  ## 3.0.3
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils15 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.3" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.5" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -674,7 +674,7 @@ function prepareTools({
674
674
  ].some((id) => id === modelId);
675
675
  const isGemini2orNewer = modelId.includes("gemini-2") || modelId.includes("gemini-3") || isLatest;
676
676
  const supportsDynamicRetrieval = modelId.includes("gemini-1.5-flash") && !modelId.includes("-8b");
677
- const supportsFileSearch = modelId.includes("gemini-2.5");
677
+ const supportsFileSearch = modelId.includes("gemini-2.5") || modelId.includes("gemini-3");
678
678
  if (tools == null) {
679
679
  return { tools: void 0, toolConfig: void 0, toolWarnings };
680
680
  }
@@ -747,7 +747,7 @@ function prepareTools({
747
747
  toolWarnings.push({
748
748
  type: "unsupported",
749
749
  feature: `provider-defined tool ${tool.id}`,
750
- details: "The file search tool is only supported with Gemini 2.5 models."
750
+ details: "The file search tool is only supported with Gemini 2.5 models and Gemini 3 models."
751
751
  });
752
752
  }
753
753
  break;