@ai-sdk/google 4.0.17 → 4.0.18

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,12 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cd06458]
8
+ - @ai-sdk/provider-utils@5.0.11
9
+
3
10
  ## 4.0.17
4
11
 
5
12
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - Google Provider
2
2
 
3
- The **[Google provider](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/) APIs.
3
+ The **[Google provider](https://ai-sdk.dev/providers/ai-sdk-providers/google)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/) APIs.
4
4
 
5
5
  > **Deploying to Vercel?** With Vercel's AI Gateway you can access Google (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
6
 
@@ -42,4 +42,4 @@ const { text } = await generateText({
42
42
 
43
43
  ## Documentation
44
44
 
45
- Please check out the **[Google provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)** for more information.
45
+ Please check out the **[Google provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/google)** for more information.
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.17" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.18" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -498,7 +498,7 @@ The response will contain the tool calls and results from the code execution.
498
498
  With [Google Search grounding](https://ai.google.dev/gemini-api/docs/google-search),
499
499
  the model has access to the latest information using Google Search.
500
500
 
501
- ```ts highlight="8,17-20"
501
+ ```ts highlight="8,17-19"
502
502
  import { google } from '@ai-sdk/google';
503
503
  import { GoogleProviderMetadata } from '@ai-sdk/google';
504
504
  import { generateText } from 'ai';
@@ -657,7 +657,7 @@ Google provides a provider-defined URL context tool.
657
657
 
658
658
  The URL context tool allows you to provide specific URLs that you want the model to analyze directly in from the prompt.
659
659
 
660
- ```ts highlight="9,13-17"
660
+ ```ts highlight="9,13-15"
661
661
  import { google } from '@ai-sdk/google';
662
662
  import { generateText } from 'ai';
663
663
 
@@ -818,7 +818,7 @@ This enables the model to provide answers based on your specific data sources an
818
818
  Google provider (`@ai-sdk/google`) to use this feature.
819
819
  </Note>
820
820
 
821
- ```ts highlight="8,17-20"
821
+ ```ts highlight="5-8,13-17,25-27"
822
822
  import { createGoogleVertex } from '@ai-sdk/google-vertex';
823
823
  import { GoogleProviderMetadata } from '@ai-sdk/google';
824
824
  import { generateText } from 'ai';
@@ -2024,7 +2024,7 @@ spoken text, so `instructions: 'Say cheerfully'` with `text: 'Hello'` speaks `Sa
2024
2024
  For multi-speaker dialogue, pass a `multiSpeakerVoiceConfig` through `providerOptions`. Each speaker
2025
2025
  name must match a name used in the input text. When set, it overrides the top-level `voice`.
2026
2026
 
2027
- ```ts highlight="8-23"
2027
+ ```ts highlight="7-22"
2028
2028
  import { generateSpeech } from 'ai';
2029
2029
  import { google, type GoogleSpeechModelOptions } from '@ai-sdk/google';
2030
2030
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.3",
39
- "@ai-sdk/provider-utils": "5.0.10"
39
+ "@ai-sdk/provider-utils": "5.0.11"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "22.19.19",