@ai-sdk/google 2.0.50 → 2.0.51

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
+ ## 2.0.51
4
+
5
+ ### Patch Changes
6
+
7
+ - cbc2dba: fix(provider/google): preserve nested empty object schemas and descriptions in tool parameters
8
+
3
9
  ## 2.0.50
4
10
 
5
11
  ### 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 ? "2.0.50" : "0.0.0-test";
33
+ var VERSION = true ? "2.0.51" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -214,6 +214,9 @@ function convertJSONSchemaToOpenAPISchema(jsonSchema, isRoot = true) {
214
214
  if (isRoot) {
215
215
  return void 0;
216
216
  }
217
+ if (typeof jsonSchema === "object" && jsonSchema.description) {
218
+ return { type: "object", description: jsonSchema.description };
219
+ }
217
220
  return { type: "object" };
218
221
  }
219
222
  if (typeof jsonSchema === "boolean") {