@ai-sdk/google 3.0.0-beta.70 → 3.0.0-beta.71

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.70" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.0-beta.71" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -942,7 +942,6 @@ var GoogleGenerativeAILanguageModel = class {
942
942
  async doGenerate(options) {
943
943
  var _a, _b, _c, _d, _e, _f, _g, _h;
944
944
  const { args, warnings } = await this.getArgs(options);
945
- const body = JSON.stringify(args);
946
945
  const mergedHeaders = combineHeaders2(
947
946
  await resolve2(this.config.headers),
948
947
  options.headers
@@ -1037,7 +1036,7 @@ var GoogleGenerativeAILanguageModel = class {
1037
1036
  usageMetadata: usageMetadata != null ? usageMetadata : null
1038
1037
  }
1039
1038
  },
1040
- request: { body },
1039
+ request: { body: args },
1041
1040
  response: {
1042
1041
  // TODO timestamp, model id, id
1043
1042
  headers: responseHeaders,
@@ -1047,7 +1046,6 @@ var GoogleGenerativeAILanguageModel = class {
1047
1046
  }
1048
1047
  async doStream(options) {
1049
1048
  const { args, warnings } = await this.getArgs(options);
1050
- const body = JSON.stringify(args);
1051
1049
  const headers = combineHeaders2(
1052
1050
  await resolve2(this.config.headers),
1053
1051
  options.headers
@@ -1279,7 +1277,7 @@ var GoogleGenerativeAILanguageModel = class {
1279
1277
  })
1280
1278
  ),
1281
1279
  response: { headers: responseHeaders },
1282
- request: { body }
1280
+ request: { body: args }
1283
1281
  };
1284
1282
  }
1285
1283
  };