@ai-sdk/google 3.0.0-beta.83 → 3.0.0-beta.85

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.0-beta.83" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.0-beta.85" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -259,6 +259,9 @@ function convertJSONSchemaToOpenAPISchema(jsonSchema, isRoot = true) {
259
259
  if (isRoot) {
260
260
  return void 0;
261
261
  }
262
+ if (typeof jsonSchema === "object" && jsonSchema.description) {
263
+ return { type: "object", description: jsonSchema.description };
264
+ }
262
265
  return { type: "object" };
263
266
  }
264
267
  if (typeof jsonSchema === "boolean") {