@ai-sdk/google 3.0.55 → 3.0.57
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 +13 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -5
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -5
- package/dist/internal/index.mjs.map +1 -1
- package/docs/15-google-generative-ai.mdx +3 -3
- package/package.json +4 -4
- package/src/google-generative-ai-options.ts +1 -7
|
@@ -245,11 +245,11 @@ The following optional provider options are available for Google Generative AI m
|
|
|
245
245
|
Optional. Defines labels used in billing reports. Available on Vertex AI only.
|
|
246
246
|
See [Google Cloud labels documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls).
|
|
247
247
|
|
|
248
|
-
- **serviceTier** _'
|
|
248
|
+
- **serviceTier** _'standard' | 'flex' | 'priority'_
|
|
249
249
|
|
|
250
250
|
Optional. The service tier to use for the request.
|
|
251
|
-
Set to '
|
|
252
|
-
Set to '
|
|
251
|
+
Set to 'flex' for 50% cheaper processing at the cost of increased latency.
|
|
252
|
+
Set to 'priority' for ultra-low latency at a 75-100% price premium over 'standard'.
|
|
253
253
|
|
|
254
254
|
- **threshold** _string_
|
|
255
255
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/google",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.57",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/provider": "3.0.8",
|
|
40
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
40
|
+
"@ai-sdk/provider-utils": "4.0.22"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
|
44
44
|
"tsup": "^8",
|
|
45
45
|
"typescript": "5.8.3",
|
|
46
46
|
"zod": "3.25.76",
|
|
47
|
-
"@
|
|
48
|
-
"@ai-
|
|
47
|
+
"@ai-sdk/test-server": "1.0.3",
|
|
48
|
+
"@vercel/ai-tsconfig": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"zod": "^3.25.76 || ^4.1.8"
|
|
@@ -192,13 +192,7 @@ export const googleLanguageModelOptions = lazySchema(() =>
|
|
|
192
192
|
/**
|
|
193
193
|
* Optional. The service tier to use for the request.
|
|
194
194
|
*/
|
|
195
|
-
serviceTier: z
|
|
196
|
-
.enum([
|
|
197
|
-
'SERVICE_TIER_STANDARD',
|
|
198
|
-
'SERVICE_TIER_FLEX',
|
|
199
|
-
'SERVICE_TIER_PRIORITY',
|
|
200
|
-
])
|
|
201
|
-
.optional(),
|
|
195
|
+
serviceTier: z.enum(['standard', 'flex', 'priority']).optional(),
|
|
202
196
|
}),
|
|
203
197
|
),
|
|
204
198
|
);
|