@ai-sdk/google-vertex 2.2.24 → 3.0.0-alpha.10

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +329 -68
  2. package/README.md +1 -1
  3. package/anthropic/edge.d.ts +1 -0
  4. package/anthropic/index.d.ts +1 -0
  5. package/{anthropic/edge/dist → dist/anthropic/edge}/index.d.mts +5 -7
  6. package/{anthropic/edge/dist → dist/anthropic/edge}/index.d.ts +5 -7
  7. package/{anthropic/edge/dist → dist/anthropic/edge}/index.js +22 -22
  8. package/dist/anthropic/edge/index.js.map +1 -0
  9. package/{anthropic/edge/dist → dist/anthropic/edge}/index.mjs +22 -22
  10. package/dist/anthropic/edge/index.mjs.map +1 -0
  11. package/{anthropic/dist → dist/anthropic}/index.d.mts +5 -7
  12. package/{anthropic/dist → dist/anthropic}/index.d.ts +5 -7
  13. package/{anthropic/dist → dist/anthropic}/index.js +22 -22
  14. package/dist/anthropic/index.js.map +1 -0
  15. package/{anthropic/dist → dist/anthropic}/index.mjs +22 -22
  16. package/dist/anthropic/index.mjs.map +1 -0
  17. package/{edge/dist → dist/edge}/index.d.mts +8 -17
  18. package/{edge/dist → dist/edge}/index.d.ts +8 -17
  19. package/{edge/dist → dist/edge}/index.js +87 -59
  20. package/dist/edge/index.js.map +1 -0
  21. package/{edge/dist → dist/edge}/index.mjs +90 -61
  22. package/dist/edge/index.mjs.map +1 -0
  23. package/dist/index.d.mts +6 -15
  24. package/dist/index.d.ts +6 -15
  25. package/dist/index.js +87 -59
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +90 -61
  28. package/dist/index.mjs.map +1 -1
  29. package/edge.d.ts +1 -0
  30. package/package.json +29 -28
  31. package/anthropic/dist/index.js.map +0 -1
  32. package/anthropic/dist/index.mjs.map +0 -1
  33. package/anthropic/edge/dist/index.js.map +0 -1
  34. package/anthropic/edge/dist/index.mjs.map +0 -1
  35. package/edge/dist/index.js.map +0 -1
  36. package/edge/dist/index.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,140 +1,401 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
- ## 2.2.24
3
+ ## 3.0.0-alpha.10
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [f262012]
8
- - @ai-sdk/google@1.2.19
7
+ - bb13f18: Add reasoning token output support for gemini models via Vertex AI Provider
8
+ - Updated dependencies [581a9be]
9
+ - Updated dependencies [c4df419]
10
+ - @ai-sdk/google@2.0.0-alpha.10
11
+ - @ai-sdk/provider@2.0.0-alpha.10
12
+ - @ai-sdk/anthropic@2.0.0-alpha.10
13
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
9
14
 
10
- ## 2.2.23
15
+ ## 3.0.0-alpha.9
11
16
 
12
17
  ### Patch Changes
13
18
 
14
- - Updated dependencies [f64f4f0]
15
- - @ai-sdk/anthropic@1.2.12
19
+ - Updated dependencies [362b048]
20
+ - Updated dependencies [811dff3]
21
+ - @ai-sdk/anthropic@2.0.0-alpha.9
22
+ - @ai-sdk/provider@2.0.0-alpha.9
23
+ - @ai-sdk/google@2.0.0-alpha.9
24
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
16
25
 
17
- ## 2.2.22
26
+ ## 3.0.0-alpha.8
18
27
 
19
28
  ### Patch Changes
20
29
 
21
- - fe24216: Add reasoning token output support for gemini models via Vertex AI Provider
22
- - Updated dependencies [4b2e1b0]
23
- - @ai-sdk/google@1.2.18
30
+ - Updated dependencies [ad66c0e]
31
+ - Updated dependencies [4fef487]
32
+ - Updated dependencies [1a635b5]
33
+ - Updated dependencies [9222aeb]
34
+ - Updated dependencies [075711d]
35
+ - @ai-sdk/anthropic@2.0.0-alpha.8
36
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
37
+ - @ai-sdk/google@2.0.0-alpha.8
38
+ - @ai-sdk/provider@2.0.0-alpha.8
24
39
 
25
- ## 2.2.21
40
+ ## 3.0.0-alpha.7
26
41
 
27
42
  ### Patch Changes
28
43
 
29
- - Updated dependencies [d87b9d1]
30
- - @ai-sdk/provider-utils@2.2.8
31
- - @ai-sdk/anthropic@1.2.11
32
- - @ai-sdk/google@1.2.17
44
+ - Updated dependencies [5c56081]
45
+ - @ai-sdk/provider@2.0.0-alpha.7
46
+ - @ai-sdk/anthropic@2.0.0-alpha.7
47
+ - @ai-sdk/google@2.0.0-alpha.7
48
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
33
49
 
34
- ## 2.2.20
50
+ ## 3.0.0-alpha.6
35
51
 
36
52
  ### Patch Changes
37
53
 
38
- - Updated dependencies [0ca6f2f]
39
- - @ai-sdk/google@1.2.16
54
+ - Updated dependencies [0d2c085]
55
+ - @ai-sdk/provider@2.0.0-alpha.6
56
+ - @ai-sdk/anthropic@2.0.0-alpha.6
57
+ - @ai-sdk/google@2.0.0-alpha.6
58
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
40
59
 
41
- ## 2.2.19
60
+ ## 3.0.0-alpha.4
42
61
 
43
62
  ### Patch Changes
44
63
 
45
- - Updated dependencies [2afd354]
46
- - @ai-sdk/google@1.2.15
64
+ - 9ccce3a: feat (google-vertex): Set `.providerMetaData` for image model responses
65
+ - Updated dependencies [dc714f3]
66
+ - Updated dependencies [ca8aac6]
67
+ - @ai-sdk/provider@2.0.0-alpha.4
68
+ - @ai-sdk/anthropic@2.0.0-alpha.4
69
+ - @ai-sdk/google@2.0.0-alpha.4
70
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
47
71
 
48
- ## 2.2.18
72
+ ## 3.0.0-alpha.3
49
73
 
50
74
  ### Patch Changes
51
75
 
52
- - a85ae99: feat (provider/google-vertex): add imagen-3.0-generate-002
53
- - Updated dependencies [c695a7e]
54
- - @ai-sdk/google@1.2.14
76
+ - Updated dependencies [6b98118]
77
+ - @ai-sdk/provider@2.0.0-alpha.3
78
+ - @ai-sdk/anthropic@2.0.0-alpha.3
79
+ - @ai-sdk/google@2.0.0-alpha.3
80
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
55
81
 
56
- ## 2.2.17
82
+ ## 3.0.0-alpha.2
57
83
 
58
84
  ### Patch Changes
59
85
 
60
- - Updated dependencies [6183b08]
61
- - @ai-sdk/google@1.2.13
86
+ - Updated dependencies [26535e0]
87
+ - @ai-sdk/provider@2.0.0-alpha.2
88
+ - @ai-sdk/anthropic@2.0.0-alpha.2
89
+ - @ai-sdk/google@2.0.0-alpha.2
90
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
62
91
 
63
- ## 2.2.16
92
+ ## 3.0.0-alpha.1
64
93
 
65
94
  ### Patch Changes
66
95
 
67
- - Updated dependencies [c56331d]
68
- - @ai-sdk/google@1.2.12
96
+ - Updated dependencies [3f2f00c]
97
+ - @ai-sdk/provider@2.0.0-alpha.1
98
+ - @ai-sdk/anthropic@2.0.0-alpha.1
99
+ - @ai-sdk/google@2.0.0-alpha.1
100
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
69
101
 
70
- ## 2.2.15
102
+ ## 3.0.0-canary.20
71
103
 
72
104
  ### Patch Changes
73
105
 
74
- - Updated dependencies [beef951]
75
- - @ai-sdk/provider@1.1.3
76
- - @ai-sdk/anthropic@1.2.10
77
- - @ai-sdk/google@1.2.11
78
- - @ai-sdk/provider-utils@2.2.7
106
+ - Updated dependencies [faf8446]
107
+ - @ai-sdk/provider-utils@3.0.0-canary.19
108
+ - @ai-sdk/anthropic@2.0.0-canary.19
109
+ - @ai-sdk/google@2.0.0-canary.20
79
110
 
80
- ## 2.2.14
111
+ ## 3.0.0-canary.19
81
112
 
82
113
  ### Patch Changes
83
114
 
84
- - Updated dependencies [aeba38e]
85
- - @ai-sdk/anthropic@1.2.9
115
+ - Updated dependencies [40acf9b]
116
+ - @ai-sdk/provider-utils@3.0.0-canary.18
117
+ - @ai-sdk/anthropic@2.0.0-canary.18
118
+ - @ai-sdk/google@2.0.0-canary.19
86
119
 
87
- ## 2.2.13
120
+ ## 3.0.0-canary.18
121
+
122
+ ### Major Changes
123
+
124
+ - 516be5b: ### Move Image Model Settings into generate options
125
+
126
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
127
+
128
+ Before
129
+
130
+ ```js
131
+ await generateImage({
132
+ model: luma.image('photon-flash-1', {
133
+ maxImagesPerCall: 5,
134
+ pollIntervalMillis: 500,
135
+ }),
136
+ prompt,
137
+ n: 10,
138
+ });
139
+ ```
140
+
141
+ After
142
+
143
+ ```js
144
+ await generateImage({
145
+ model: luma.image('photon-flash-1'),
146
+ prompt,
147
+ n: 10,
148
+ maxImagesPerCall: 5,
149
+ providerOptions: {
150
+ luma: { pollIntervalMillis: 5 },
151
+ },
152
+ });
153
+ ```
154
+
155
+ Pull Request: https://github.com/vercel/ai/pull/6180
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [f07a6d4]
160
+ - Updated dependencies [ea7a7c9]
161
+ - @ai-sdk/google@2.0.0-canary.18
162
+ - @ai-sdk/provider-utils@3.0.0-canary.17
163
+ - @ai-sdk/anthropic@2.0.0-canary.17
164
+
165
+ ## 3.0.0-canary.17
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [87b828f]
170
+ - @ai-sdk/provider-utils@3.0.0-canary.16
171
+ - @ai-sdk/anthropic@2.0.0-canary.16
172
+ - @ai-sdk/google@2.0.0-canary.17
173
+
174
+ ## 3.0.0-canary.16
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [a571d6e]
179
+ - Updated dependencies [a8c8bd5]
180
+ - Updated dependencies [7979f7f]
181
+ - Updated dependencies [41fa418]
182
+ - @ai-sdk/provider-utils@3.0.0-canary.15
183
+ - @ai-sdk/provider@2.0.0-canary.14
184
+ - @ai-sdk/anthropic@2.0.0-canary.15
185
+ - @ai-sdk/google@2.0.0-canary.16
186
+
187
+ ## 3.0.0-canary.15
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [957b739]
192
+ - Updated dependencies [9bd5ab5]
193
+ - @ai-sdk/provider-utils@3.0.0-canary.14
194
+ - @ai-sdk/provider@2.0.0-canary.13
195
+ - @ai-sdk/anthropic@2.0.0-canary.14
196
+ - @ai-sdk/google@2.0.0-canary.15
197
+
198
+ ## 3.0.0-canary.14
199
+
200
+ ### Patch Changes
201
+
202
+ - 8e171f5: feat (provider/google-vertex): add imagen-3.0-generate-002
203
+ - d9209ca: fix (image-model): `specificationVersion: v1` -> `v2`
204
+ - Updated dependencies [f916255]
205
+ - Updated dependencies [7b3ae3f]
206
+ - Updated dependencies [0ff02bb]
207
+ - @ai-sdk/google@2.0.0-canary.14
208
+ - @ai-sdk/provider@2.0.0-canary.12
209
+ - @ai-sdk/provider-utils@3.0.0-canary.13
210
+ - @ai-sdk/anthropic@2.0.0-canary.13
211
+
212
+ ## 3.0.0-canary.13
213
+
214
+ ### Patch Changes
215
+
216
+ - 5c9eec4: chore(providers/anthropic): switch to providerOptions
217
+ - 7378473: chore(providers/google): switch to providerOptions
218
+ - Updated dependencies [5c9eec4]
219
+ - Updated dependencies [9bf7291]
220
+ - Updated dependencies [7378473]
221
+ - Updated dependencies [4617fab]
222
+ - Updated dependencies [e030615]
223
+ - @ai-sdk/anthropic@2.0.0-canary.12
224
+ - @ai-sdk/provider@2.0.0-canary.11
225
+ - @ai-sdk/google@2.0.0-canary.13
226
+ - @ai-sdk/provider-utils@3.0.0-canary.12
227
+
228
+ ## 3.0.0-canary.12
229
+
230
+ ### Patch Changes
231
+
232
+ - 66962ed: fix(packages): export node10 compatible types
233
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
234
+ - Updated dependencies [888b750]
235
+ - Updated dependencies [66962ed]
236
+ - Updated dependencies [9301f86]
237
+ - Updated dependencies [a3f768e]
238
+ - @ai-sdk/google@2.0.0-canary.12
239
+ - @ai-sdk/provider-utils@3.0.0-canary.11
240
+ - @ai-sdk/anthropic@2.0.0-canary.11
241
+ - @ai-sdk/provider@2.0.0-canary.10
242
+
243
+ ## 3.0.0-canary.11
244
+
245
+ ### Patch Changes
246
+
247
+ - Updated dependencies [e86be6f]
248
+ - @ai-sdk/provider@2.0.0-canary.9
249
+ - @ai-sdk/anthropic@2.0.0-canary.10
250
+ - @ai-sdk/google@2.0.0-canary.11
251
+ - @ai-sdk/provider-utils@3.0.0-canary.10
252
+
253
+ ## 3.0.0-canary.10
254
+
255
+ ### Patch Changes
256
+
257
+ - cea5997: chore(providers/google-vertex): update embedding model to use providerOptions
258
+ - Updated dependencies [95857aa]
259
+ - Updated dependencies [3259565]
260
+ - Updated dependencies [fd98925]
261
+ - Updated dependencies [7ea4132]
262
+ - @ai-sdk/provider@2.0.0-canary.8
263
+ - @ai-sdk/google@2.0.0-canary.10
264
+ - @ai-sdk/anthropic@2.0.0-canary.9
265
+ - @ai-sdk/provider-utils@3.0.0-canary.9
266
+
267
+ ## 3.0.0-canary.9
268
+
269
+ ### Patch Changes
270
+
271
+ - Updated dependencies [5d142ab]
272
+ - Updated dependencies [b6b43c7]
273
+ - Updated dependencies [8aa9e20]
274
+ - Updated dependencies [3795467]
275
+ - @ai-sdk/provider-utils@3.0.0-canary.8
276
+ - @ai-sdk/provider@2.0.0-canary.7
277
+ - @ai-sdk/anthropic@2.0.0-canary.8
278
+ - @ai-sdk/google@2.0.0-canary.9
279
+
280
+ ## 3.0.0-canary.8
281
+
282
+ ### Patch Changes
283
+
284
+ - 26735b5: chore(embedding-model): add v2 interface
285
+ - 443d8ec: feat(embedding-model-v2): add response body field
286
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
287
+ - Updated dependencies [26735b5]
288
+ - Updated dependencies [443d8ec]
289
+ - Updated dependencies [14c9410]
290
+ - Updated dependencies [d9c98f4]
291
+ - Updated dependencies [c4a2fec]
292
+ - Updated dependencies [0054544]
293
+ - Updated dependencies [9e9c809]
294
+ - Updated dependencies [32831c6]
295
+ - Updated dependencies [d0f9495]
296
+ - Updated dependencies [fd65bc6]
297
+ - Updated dependencies [393138b]
298
+ - Updated dependencies [7182d14]
299
+ - @ai-sdk/provider@2.0.0-canary.6
300
+ - @ai-sdk/google@2.0.0-canary.8
301
+ - @ai-sdk/anthropic@2.0.0-canary.7
302
+ - @ai-sdk/provider-utils@3.0.0-canary.7
303
+
304
+ ## 3.0.0-canary.7
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [411e483]
309
+ - Updated dependencies [79457bd]
310
+ - Updated dependencies [ad80501]
311
+ - Updated dependencies [1766ede]
312
+ - Updated dependencies [f10304b]
313
+ - @ai-sdk/provider@2.0.0-canary.5
314
+ - @ai-sdk/anthropic@2.0.0-canary.6
315
+ - @ai-sdk/google@2.0.0-canary.7
316
+ - @ai-sdk/provider-utils@3.0.0-canary.6
317
+
318
+ ## 3.0.0-canary.6
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [6f6bb89]
323
+ - @ai-sdk/provider@2.0.0-canary.4
324
+ - @ai-sdk/anthropic@2.0.0-canary.5
325
+ - @ai-sdk/google@2.0.0-canary.6
326
+ - @ai-sdk/provider-utils@3.0.0-canary.5
327
+
328
+ ## 3.0.0-canary.5
88
329
 
89
330
  ### Patch Changes
90
331
 
91
- - Updated dependencies [013faa8]
92
- - @ai-sdk/provider@1.1.2
93
- - @ai-sdk/anthropic@1.2.8
94
- - @ai-sdk/google@1.2.10
95
- - @ai-sdk/provider-utils@2.2.6
332
+ - Updated dependencies [d1a1aa1]
333
+ - @ai-sdk/provider@2.0.0-canary.3
334
+ - @ai-sdk/anthropic@2.0.0-canary.4
335
+ - @ai-sdk/google@2.0.0-canary.5
336
+ - @ai-sdk/provider-utils@3.0.0-canary.4
96
337
 
97
- ## 2.2.12
338
+ ## 3.0.0-canary.4
98
339
 
99
340
  ### Patch Changes
100
341
 
101
- - Updated dependencies [c21fa6d]
102
- - @ai-sdk/provider-utils@2.2.5
103
- - @ai-sdk/provider@1.1.1
104
- - @ai-sdk/anthropic@1.2.7
105
- - @ai-sdk/google@1.2.9
342
+ - Updated dependencies [a166433]
343
+ - Updated dependencies [abf9a79]
344
+ - Updated dependencies [9f95b35]
345
+ - Updated dependencies [0a87932]
346
+ - Updated dependencies [6dc848c]
347
+ - Updated dependencies [61ab528]
348
+ - @ai-sdk/provider-utils@3.0.0-canary.3
349
+ - @ai-sdk/provider@2.0.0-canary.2
350
+ - @ai-sdk/anthropic@2.0.0-canary.3
351
+ - @ai-sdk/google@2.0.0-canary.4
106
352
 
107
- ## 2.2.11
353
+ ## 3.0.0-canary.3
108
354
 
109
355
  ### Patch Changes
110
356
 
111
- - Updated dependencies [1e8e66d]
112
- - @ai-sdk/google@1.2.8
357
+ - Updated dependencies [c57e248]
358
+ - Updated dependencies [33f4a6a]
359
+ - @ai-sdk/provider@2.0.0-canary.1
360
+ - @ai-sdk/anthropic@2.0.0-canary.2
361
+ - @ai-sdk/google@2.0.0-canary.3
362
+ - @ai-sdk/provider-utils@3.0.0-canary.2
113
363
 
114
- ## 2.2.10
364
+ ## 3.0.0-canary.2
115
365
 
116
366
  ### Patch Changes
117
367
 
118
- - 1789884: feat: add provider option schemas for vertex imagegen and google genai
119
- - Updated dependencies [1789884]
120
- - @ai-sdk/google@1.2.7
368
+ - Updated dependencies [5cf30ea]
369
+ - @ai-sdk/google@2.0.0-canary.2
121
370
 
122
- ## 2.2.9
371
+ ## 3.0.0-canary.1
123
372
 
124
373
  ### Patch Changes
125
374
 
126
- - Updated dependencies [2c19b9a]
127
- - @ai-sdk/provider-utils@2.2.4
128
- - @ai-sdk/anthropic@1.2.6
129
- - @ai-sdk/google@1.2.6
375
+ - 779d916: feat: add provider option schemas for vertex imagegen and google genai
376
+ - Updated dependencies [060370c]
377
+ - Updated dependencies [0c0c0b3]
378
+ - Updated dependencies [779d916]
379
+ - Updated dependencies [63d791d]
380
+ - @ai-sdk/provider-utils@3.0.0-canary.1
381
+ - @ai-sdk/google@2.0.0-canary.1
382
+ - @ai-sdk/anthropic@2.0.0-canary.1
383
+
384
+ ## 3.0.0-canary.0
385
+
386
+ ### Major Changes
130
387
 
131
- ## 2.2.8
388
+ - d5f588f: AI SDK 5
132
389
 
133
390
  ### Patch Changes
134
391
 
135
- - 292f543: fix (provider/google-vertex): fix anthropic support for image urls in messages
136
- - Updated dependencies [292f543]
137
- - @ai-sdk/anthropic@1.2.5
392
+ - 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
393
+ - Updated dependencies [d5f588f]
394
+ - Updated dependencies [91715e5]
395
+ - @ai-sdk/provider-utils@3.0.0-canary.0
396
+ - @ai-sdk/anthropic@2.0.0-canary.0
397
+ - @ai-sdk/google@2.0.0-canary.0
398
+ - @ai-sdk/provider@2.0.0-canary.0
138
399
 
139
400
  ## 2.2.7
140
401
 
package/README.md CHANGED
@@ -125,7 +125,7 @@ async function main() {
125
125
  });
126
126
 
127
127
  console.log(result.text);
128
- console.log(result.experimental_providerMetadata?.anthropic);
128
+ console.log(result.providerMetadata?.anthropic);
129
129
  // e.g. { cacheCreationInputTokens: 2118, cacheReadInputTokens: 0 }
130
130
  }
131
131
 
@@ -0,0 +1 @@
1
+ export * from '../dist/anthropic/edge';
@@ -0,0 +1 @@
1
+ export * from '../dist/anthropic';
@@ -1,6 +1,6 @@
1
- import { ProviderV1, LanguageModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
2
2
  import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
3
- import { AnthropicMessagesSettings, anthropicTools } from '@ai-sdk/anthropic/internal';
3
+ import { anthropicTools } from '@ai-sdk/anthropic/internal';
4
4
 
5
5
  interface GoogleCredentials {
6
6
  /**
@@ -21,18 +21,16 @@ interface GoogleCredentials {
21
21
  }
22
22
 
23
23
  type GoogleVertexAnthropicMessagesModelId = 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
24
- interface GoogleVertexAnthropicMessagesSettings extends AnthropicMessagesSettings {
25
- }
26
24
 
27
- interface GoogleVertexAnthropicProvider extends ProviderV1 {
25
+ interface GoogleVertexAnthropicProvider extends ProviderV2 {
28
26
  /**
29
27
  Creates a model for text generation.
30
28
  */
31
- (modelId: GoogleVertexAnthropicMessagesModelId, settings?: GoogleVertexAnthropicMessagesSettings): LanguageModelV1;
29
+ (modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;
32
30
  /**
33
31
  Creates a model for text generation.
34
32
  */
35
- languageModel(modelId: GoogleVertexAnthropicMessagesModelId, settings?: GoogleVertexAnthropicMessagesSettings): LanguageModelV1;
33
+ languageModel(modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;
36
34
  /**
37
35
  Anthropic-specific computer use tool.
38
36
  */
@@ -1,6 +1,6 @@
1
- import { ProviderV1, LanguageModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
2
2
  import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
3
- import { AnthropicMessagesSettings, anthropicTools } from '@ai-sdk/anthropic/internal';
3
+ import { anthropicTools } from '@ai-sdk/anthropic/internal';
4
4
 
5
5
  interface GoogleCredentials {
6
6
  /**
@@ -21,18 +21,16 @@ interface GoogleCredentials {
21
21
  }
22
22
 
23
23
  type GoogleVertexAnthropicMessagesModelId = 'claude-3-7-sonnet@20250219' | 'claude-3-5-sonnet-v2@20241022' | 'claude-3-5-haiku@20241022' | 'claude-3-5-sonnet@20240620' | 'claude-3-haiku@20240307' | 'claude-3-sonnet@20240229' | 'claude-3-opus@20240229' | (string & {});
24
- interface GoogleVertexAnthropicMessagesSettings extends AnthropicMessagesSettings {
25
- }
26
24
 
27
- interface GoogleVertexAnthropicProvider extends ProviderV1 {
25
+ interface GoogleVertexAnthropicProvider extends ProviderV2 {
28
26
  /**
29
27
  Creates a model for text generation.
30
28
  */
31
- (modelId: GoogleVertexAnthropicMessagesModelId, settings?: GoogleVertexAnthropicMessagesSettings): LanguageModelV1;
29
+ (modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;
32
30
  /**
33
31
  Creates a model for text generation.
34
32
  */
35
- languageModel(modelId: GoogleVertexAnthropicMessagesModelId, settings?: GoogleVertexAnthropicMessagesSettings): LanguageModelV1;
33
+ languageModel(modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;
36
34
  /**
37
35
  Anthropic-specific computer use tool.
38
36
  */
@@ -145,35 +145,32 @@ function createVertexAnthropic(options = {}) {
145
145
  environmentVariableName: "GOOGLE_VERTEX_PROJECT"
146
146
  });
147
147
  const baseURL = (_a = (0, import_provider_utils2.withoutTrailingSlash)(options.baseURL)) != null ? _a : `https://${location}-aiplatform.googleapis.com/v1/projects/${project}/locations/${location}/publishers/anthropic/models`;
148
- const createChatModel = (modelId, settings = {}) => {
148
+ const createChatModel = (modelId) => {
149
149
  var _a2;
150
- return new import_internal.AnthropicMessagesLanguageModel(
151
- modelId,
152
- settings,
153
- {
154
- provider: "vertex.anthropic.messages",
155
- baseURL,
156
- headers: (_a2 = options.headers) != null ? _a2 : {},
157
- fetch: options.fetch,
158
- supportsImageUrls: false,
159
- buildRequestUrl: (baseURL2, isStreaming) => `${baseURL2}/${modelId}:${isStreaming ? "streamRawPredict" : "rawPredict"}`,
160
- transformRequestBody: (args) => {
161
- const { model, ...rest } = args;
162
- return {
163
- ...rest,
164
- anthropic_version: "vertex-2023-10-16"
165
- };
166
- }
167
- }
168
- );
150
+ return new import_internal.AnthropicMessagesLanguageModel(modelId, {
151
+ provider: "vertex.anthropic.messages",
152
+ baseURL,
153
+ headers: (_a2 = options.headers) != null ? _a2 : {},
154
+ fetch: options.fetch,
155
+ buildRequestUrl: (baseURL2, isStreaming) => `${baseURL2}/${modelId}:${isStreaming ? "streamRawPredict" : "rawPredict"}`,
156
+ transformRequestBody: (args) => {
157
+ const { model, ...rest } = args;
158
+ return {
159
+ ...rest,
160
+ anthropic_version: "vertex-2023-10-16"
161
+ };
162
+ },
163
+ // Google Vertex Anthropic doesn't support URL sources, force download and base64 conversion
164
+ supportedUrls: () => ({})
165
+ });
169
166
  };
170
- const provider = function(modelId, settings) {
167
+ const provider = function(modelId) {
171
168
  if (new.target) {
172
169
  throw new Error(
173
170
  "The Anthropic model function cannot be called with the new keyword."
174
171
  );
175
172
  }
176
- return createChatModel(modelId, settings);
173
+ return createChatModel(modelId);
177
174
  };
178
175
  provider.languageModel = createChatModel;
179
176
  provider.chat = createChatModel;
@@ -181,6 +178,9 @@ function createVertexAnthropic(options = {}) {
181
178
  provider.textEmbeddingModel = (modelId) => {
182
179
  throw new import_provider.NoSuchModelError({ modelId, modelType: "textEmbeddingModel" });
183
180
  };
181
+ provider.imageModel = (modelId) => {
182
+ throw new import_provider.NoSuchModelError({ modelId, modelType: "imageModel" });
183
+ };
184
184
  provider.tools = import_internal.anthropicTools;
185
185
  return provider;
186
186
  }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/anthropic/edge/index.ts","../../../src/anthropic/edge/google-vertex-anthropic-provider-edge.ts","../../../src/edge/google-vertex-auth-edge.ts","../../../src/anthropic/google-vertex-anthropic-provider.ts"],"sourcesContent":["export {\n createVertexAnthropic,\n vertexAnthropic,\n} from './google-vertex-anthropic-provider-edge';\nexport type {\n GoogleVertexAnthropicProviderSettings,\n GoogleVertexAnthropicProvider,\n} from './google-vertex-anthropic-provider-edge';\n","import { resolve } from '@ai-sdk/provider-utils';\nimport {\n generateAuthToken,\n GoogleCredentials,\n} from '../../edge/google-vertex-auth-edge';\nimport {\n createVertexAnthropic as createVertexAnthropicOriginal,\n GoogleVertexAnthropicProvider,\n GoogleVertexAnthropicProviderSettings as GoogleVertexAnthropicProviderSettingsOriginal,\n} from '../google-vertex-anthropic-provider';\n\nexport type { GoogleVertexAnthropicProvider };\n\nexport interface GoogleVertexAnthropicProviderSettings\n extends GoogleVertexAnthropicProviderSettingsOriginal {\n /**\n * Optional. The Google credentials for the Google Cloud service account. If\n * not provided, the Google Vertex provider will use environment variables to\n * load the credentials.\n */\n googleCredentials?: GoogleCredentials;\n}\n\nexport function createVertexAnthropic(\n options: GoogleVertexAnthropicProviderSettings = {},\n): GoogleVertexAnthropicProvider {\n return createVertexAnthropicOriginal({\n ...options,\n headers: async () => ({\n Authorization: `Bearer ${await generateAuthToken(\n options.googleCredentials,\n )}`,\n ...(await resolve(options.headers)),\n }),\n });\n}\n\n/**\n * Default Google Vertex AI Anthropic provider instance.\n */\nexport const vertexAnthropic = createVertexAnthropic();\n","import { loadOptionalSetting, loadSetting } from '@ai-sdk/provider-utils';\n\nexport interface GoogleCredentials {\n /**\n * The client email for the Google Cloud service account. Defaults to the\n * value of the `GOOGLE_CLIENT_EMAIL` environment variable.\n */\n clientEmail: string;\n\n /**\n * The private key for the Google Cloud service account. Defaults to the\n * value of the `GOOGLE_PRIVATE_KEY` environment variable.\n */\n privateKey: string;\n\n /**\n * Optional. The private key ID for the Google Cloud service account. Defaults\n * to the value of the `GOOGLE_PRIVATE_KEY_ID` environment variable.\n */\n privateKeyId?: string;\n}\n\nconst loadCredentials = async (): Promise<GoogleCredentials> => {\n try {\n return {\n clientEmail: loadSetting({\n settingValue: undefined,\n settingName: 'clientEmail',\n environmentVariableName: 'GOOGLE_CLIENT_EMAIL',\n description: 'Google client email',\n }),\n privateKey: loadSetting({\n settingValue: undefined,\n settingName: 'privateKey',\n environmentVariableName: 'GOOGLE_PRIVATE_KEY',\n description: 'Google private key',\n }),\n privateKeyId: loadOptionalSetting({\n settingValue: undefined,\n environmentVariableName: 'GOOGLE_PRIVATE_KEY_ID',\n }),\n };\n } catch (error: any) {\n throw new Error(`Failed to load Google credentials: ${error.message}`);\n }\n};\n\n// Convert a string to base64url\nconst base64url = (str: string) => {\n return btoa(str).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\n};\nconst importPrivateKey = async (pemKey: string) => {\n const pemHeader = '-----BEGIN PRIVATE KEY-----';\n const pemFooter = '-----END PRIVATE KEY-----';\n\n // Remove header, footer, and any whitespace/newlines\n const pemContents = pemKey\n .replace(pemHeader, '')\n .replace(pemFooter, '')\n .replace(/\\s/g, '');\n\n // Decode base64 to binary\n const binaryString = atob(pemContents);\n\n // Convert binary string to Uint8Array\n const binaryData = new Uint8Array(binaryString.length);\n for (let i = 0; i < binaryString.length; i++) {\n binaryData[i] = binaryString.charCodeAt(i);\n }\n\n return await crypto.subtle.importKey(\n 'pkcs8',\n binaryData,\n { name: 'RSASSA-PKCS1-v1_5', hash: 'SHA-256' },\n true,\n ['sign'],\n );\n};\n\nconst buildJwt = async (credentials: GoogleCredentials) => {\n const now = Math.floor(Date.now() / 1000);\n\n // Only include kid in header if privateKeyId is provided\n const header: { alg: string; typ: string; kid?: string } = {\n alg: 'RS256',\n typ: 'JWT',\n };\n\n if (credentials.privateKeyId) {\n header.kid = credentials.privateKeyId;\n }\n\n const payload = {\n iss: credentials.clientEmail,\n scope: 'https://www.googleapis.com/auth/cloud-platform',\n aud: 'https://oauth2.googleapis.com/token',\n exp: now + 3600,\n iat: now,\n };\n\n const privateKey = await importPrivateKey(credentials.privateKey);\n\n const signingInput = `${base64url(JSON.stringify(header))}.${base64url(\n JSON.stringify(payload),\n )}`;\n const encoder = new TextEncoder();\n const data = encoder.encode(signingInput);\n\n const signature = await crypto.subtle.sign(\n 'RSASSA-PKCS1-v1_5',\n privateKey,\n data,\n );\n\n const signatureBase64 = base64url(\n String.fromCharCode(...new Uint8Array(signature)),\n );\n\n return `${base64url(JSON.stringify(header))}.${base64url(\n JSON.stringify(payload),\n )}.${signatureBase64}`;\n};\n\n/**\n * Generate an authentication token for Google Vertex AI in a manner compatible\n * with the Edge runtime.\n */\nexport async function generateAuthToken(credentials?: GoogleCredentials) {\n try {\n const creds = credentials || (await loadCredentials());\n const jwt = await buildJwt(creds);\n\n const response = await fetch('https://oauth2.googleapis.com/token', {\n method: 'POST',\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n body: new URLSearchParams({\n grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',\n assertion: jwt,\n }),\n });\n\n if (!response.ok) {\n throw new Error(`Token request failed: ${response.statusText}`);\n }\n\n const data = await response.json();\n return data.access_token;\n } catch (error) {\n throw error;\n }\n}\n","import {\n LanguageModelV2,\n NoSuchModelError,\n ProviderV2,\n} from '@ai-sdk/provider';\nimport {\n FetchFunction,\n Resolvable,\n loadOptionalSetting,\n withoutTrailingSlash,\n} from '@ai-sdk/provider-utils';\nimport {\n anthropicTools,\n AnthropicMessagesLanguageModel,\n AnthropicMessagesModelId,\n} from '@ai-sdk/anthropic/internal';\nimport { GoogleVertexAnthropicMessagesModelId } from './google-vertex-anthropic-messages-options';\nexport interface GoogleVertexAnthropicProvider extends ProviderV2 {\n /**\nCreates a model for text generation.\n*/\n (modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;\n\n /**\nCreates a model for text generation.\n*/\n languageModel(modelId: GoogleVertexAnthropicMessagesModelId): LanguageModelV2;\n\n /**\nAnthropic-specific computer use tool.\n */\n tools: typeof anthropicTools;\n}\n\nexport interface GoogleVertexAnthropicProviderSettings {\n /**\n * Google Cloud project ID. Defaults to the value of the `GOOGLE_VERTEX_PROJECT` environment variable.\n */\n project?: string;\n\n /**\n * Google Cloud region. Defaults to the value of the `GOOGLE_VERTEX_LOCATION` environment variable.\n */\n location?: string;\n\n /**\nUse a different URL prefix for API calls, e.g. to use proxy servers.\nThe default prefix is `https://api.anthropic.com/v1`.\n */\n baseURL?: string;\n\n /**\nCustom headers to include in the requests.\n */\n headers?: Resolvable<Record<string, string | undefined>>;\n\n /**\nCustom fetch implementation. You can use it as a middleware to intercept requests,\nor to provide a custom fetch implementation for e.g. testing.\n */\n fetch?: FetchFunction;\n}\n\n/**\nCreate a Google Vertex Anthropic provider instance.\n */\nexport function createVertexAnthropic(\n options: GoogleVertexAnthropicProviderSettings = {},\n): GoogleVertexAnthropicProvider {\n const location = loadOptionalSetting({\n settingValue: options.location,\n environmentVariableName: 'GOOGLE_VERTEX_LOCATION',\n });\n const project = loadOptionalSetting({\n settingValue: options.project,\n environmentVariableName: 'GOOGLE_VERTEX_PROJECT',\n });\n const baseURL =\n withoutTrailingSlash(options.baseURL) ??\n `https://${location}-aiplatform.googleapis.com/v1/projects/${project}/locations/${location}/publishers/anthropic/models`;\n\n const createChatModel = (modelId: GoogleVertexAnthropicMessagesModelId) =>\n new AnthropicMessagesLanguageModel(modelId, {\n provider: 'vertex.anthropic.messages',\n baseURL,\n headers: options.headers ?? {},\n fetch: options.fetch,\n\n buildRequestUrl: (baseURL, isStreaming) =>\n `${baseURL}/${modelId}:${\n isStreaming ? 'streamRawPredict' : 'rawPredict'\n }`,\n transformRequestBody: args => {\n // Remove model from args and add anthropic version\n const { model, ...rest } = args;\n return {\n ...rest,\n anthropic_version: 'vertex-2023-10-16',\n };\n },\n // Google Vertex Anthropic doesn't support URL sources, force download and base64 conversion\n supportedUrls: () => ({}),\n });\n\n const provider = function (modelId: GoogleVertexAnthropicMessagesModelId) {\n if (new.target) {\n throw new Error(\n 'The Anthropic model function cannot be called with the new keyword.',\n );\n }\n\n return createChatModel(modelId);\n };\n\n provider.languageModel = createChatModel;\n provider.chat = createChatModel;\n provider.messages = createChatModel;\n\n provider.textEmbeddingModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'textEmbeddingModel' });\n };\n provider.imageModel = (modelId: string) => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n provider.tools = anthropicTools;\n\n return provider;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA;AAAA;AAAA;;;ACAA,IAAAC,yBAAwB;;;ACAxB,4BAAiD;AAsBjD,IAAM,kBAAkB,YAAwC;AAC9D,MAAI;AACF,WAAO;AAAA,MACL,iBAAa,mCAAY;AAAA,QACvB,cAAc;AAAA,QACd,aAAa;AAAA,QACb,yBAAyB;AAAA,Q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GAAG;AAAA,IACH,SAAS,aAAa;AAAA,MACpB,eAAe,UAAU,MAAM;AAAA,QAC7B,QAAQ;AAAA,MACV,CAAC;AAAA,MACD,GAAI,UAAM,gCAAQ,QAAQ,OAAO;AAAA,IACnC;AAAA,EACF,CAAC;AACH;AAKO,IAAM,kBAAkBA,uBAAsB;","names":["createVertexAnthropic","import_provider_utils","import_provider_utils","_a","baseURL","createVertexAnthropic"]}