@ai-sdk/google 3.0.72 → 3.0.73

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.
@@ -1581,7 +1581,7 @@ The following optional provider options are available for Google Generative AI e
1581
1581
 
1582
1582
  - **content**: _array_
1583
1583
 
1584
- Optional. Per-value multimodal content parts for embedding non-text content (images, video, PDF, audio). Each entry corresponds to the embedding value at the same index — its parts are merged with the text value in the request. Use `null` for entries that are text-only. The array length must match the number of values being embedded. Each non-null entry is an array of parts, where each part can be either `{ text: string }` or `{ inlineData: { mimeType: string, data: string } }`. Supported by `gemini-embedding-2-preview`.
1584
+ Optional. Per-value multimodal content parts for embedding non-text content (images, video, PDF, audio). Each entry corresponds to the embedding value at the same index — its parts are merged with the text value in the request. Use `null` for entries that are text-only. The array length must match the number of values being embedded. Each non-null entry is an array of parts, where each part can be `{ text: string }`, `{ inlineData: { mimeType: string, data: string } }` for inline base64 data, or `{ fileData: { fileUri: string, mimeType: string } }` to reference remote content via HTTP URL or Google Cloud Storage URI (`gs://...`). Supported by `gemini-embedding-2-preview`.
1585
1585
 
1586
1586
  ### Model Capabilities
1587
1587
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "3.0.72",
3
+ "version": "3.0.73",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@ai-sdk/provider-utils": "4.0.27",
40
- "@ai-sdk/provider": "3.0.10"
39
+ "@ai-sdk/provider": "3.0.10",
40
+ "@ai-sdk/provider-utils": "4.0.27"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -18,6 +18,12 @@ const googleEmbeddingContentPartSchema = z.union([
18
18
  data: z.string(),
19
19
  }),
20
20
  }),
21
+ z.object({
22
+ fileData: z.object({
23
+ fileUri: z.string(),
24
+ mimeType: z.string(),
25
+ }),
26
+ }),
21
27
  ]);
22
28
 
23
29
  export const googleEmbeddingModelOptions = lazySchema(() =>