@ai-sdk/google 4.0.79 → 4.0.82
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 +23 -0
- package/README.md +1 -1
- package/dist/index.js +493 -519
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +6 -0
- package/dist/internal/index.js +356 -342
- package/dist/internal/index.js.map +1 -1
- package/docs/15-google.mdx +14 -14
- package/package.json +3 -3
- package/src/convert-to-google-messages.ts +56 -10
- package/src/download-tool-result-files.ts +20 -2
- package/src/google-language-model.ts +16 -0
- package/src/google-prompt.ts +7 -3
- package/src/interactions/convert-to-google-interactions-input.ts +2 -2
- package/src/interactions/google-interactions-prompt.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 4.0.82
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bc49f78: fix(google): forward supported Vertex tool result URLs as function response file data
|
|
8
|
+
- Updated dependencies [af9597b]
|
|
9
|
+
- Updated dependencies [bc49f78]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.49
|
|
11
|
+
|
|
12
|
+
## 4.0.81
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- b126c4b: fix(google): serialize Interactions video offsets as Google duration strings
|
|
17
|
+
- Updated dependencies [be877ff]
|
|
18
|
+
- @ai-sdk/provider-utils@5.0.48
|
|
19
|
+
|
|
20
|
+
## 4.0.80
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 8beac3e: fix(google): serialize JSON Schema references in function responses
|
|
25
|
+
|
|
3
26
|
## 4.0.79
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ import { google } from '@ai-sdk/google';
|
|
|
35
35
|
import { generateText } from 'ai';
|
|
36
36
|
|
|
37
37
|
const { text } = await generateText({
|
|
38
|
-
model: google('gemini-
|
|
38
|
+
model: google('gemini-3.1-pro-preview'),
|
|
39
39
|
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
|
|
40
40
|
});
|
|
41
41
|
```
|