@ai-sdk/google 4.0.0-canary.59 → 4.0.0-canary.61

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,18 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.0-canary.61
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [105f95b]
8
+ - @ai-sdk/provider-utils@5.0.0-canary.39
9
+
10
+ ## 4.0.0-canary.60
11
+
12
+ ### Patch Changes
13
+
14
+ - 6a26901: feat(google): add `fileData` support to embedding model
15
+
3
16
  ## 4.0.0-canary.59
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -228,6 +228,11 @@ declare const googleEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
228
228
  mimeType: string;
229
229
  data: string;
230
230
  };
231
+ } | {
232
+ fileData: {
233
+ fileUri: string;
234
+ mimeType: string;
235
+ };
231
236
  })[] | null)[] | undefined;
232
237
  }>;
233
238
  type GoogleEmbeddingModelOptions = InferSchema<typeof googleEmbeddingModelOptions>;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.0-canary.59" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.0-canary.61" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -63,6 +63,12 @@ var googleEmbeddingContentPartSchema = z2.union([
63
63
  mimeType: z2.string(),
64
64
  data: z2.string()
65
65
  })
66
+ }),
67
+ z2.object({
68
+ fileData: z2.object({
69
+ fileUri: z2.string(),
70
+ mimeType: z2.string()
71
+ })
66
72
  })
67
73
  ]);
68
74
  var googleEmbeddingModelOptions = lazySchema2(