@ai-sdk/groq 2.0.0-canary.9 → 2.0.0

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,444 @@
1
1
  # @ai-sdk/groq
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d5f588f: AI SDK 5
8
+
9
+ ### Patch Changes
10
+
11
+ - e2aceaf: feat: add raw chunk support
12
+ - e0d9541: feat: add kimi k2 model via groq
13
+ - 9bd148e: feat(providers/groq): add transcribe
14
+ - ae3a4fd: feat(provider/groq): add structured outputs support
15
+ - d1a034f: feature: using Zod 4 for internal stuff
16
+ - ebeac90: chore(providers/groq): convert to providerOptions
17
+ - 67b9604: feat (provider/groq): add llama 4 model
18
+ - 205077b: fix: improve Zod compatibility
19
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
20
+ - Updated dependencies [a571d6e]
21
+ - Updated dependencies [742b7be]
22
+ - Updated dependencies [e7fcc86]
23
+ - Updated dependencies [7cddb72]
24
+ - Updated dependencies [ccce59b]
25
+ - Updated dependencies [e2b9e4b]
26
+ - Updated dependencies [95857aa]
27
+ - Updated dependencies [45c1ea2]
28
+ - Updated dependencies [6f6bb89]
29
+ - Updated dependencies [060370c]
30
+ - Updated dependencies [dc714f3]
31
+ - Updated dependencies [b5da06a]
32
+ - Updated dependencies [d1a1aa1]
33
+ - Updated dependencies [63f9e9b]
34
+ - Updated dependencies [5d142ab]
35
+ - Updated dependencies [d5f588f]
36
+ - Updated dependencies [e025824]
37
+ - Updated dependencies [0571b98]
38
+ - Updated dependencies [b6b43c7]
39
+ - Updated dependencies [4fef487]
40
+ - Updated dependencies [48d257a]
41
+ - Updated dependencies [0c0c0b3]
42
+ - Updated dependencies [0d2c085]
43
+ - Updated dependencies [40acf9b]
44
+ - Updated dependencies [9222aeb]
45
+ - Updated dependencies [e2aceaf]
46
+ - Updated dependencies [411e483]
47
+ - Updated dependencies [8ba77a7]
48
+ - Updated dependencies [7b3ae3f]
49
+ - Updated dependencies [a166433]
50
+ - Updated dependencies [26735b5]
51
+ - Updated dependencies [443d8ec]
52
+ - Updated dependencies [a8c8bd5]
53
+ - Updated dependencies [abf9a79]
54
+ - Updated dependencies [14c9410]
55
+ - Updated dependencies [e86be6f]
56
+ - Updated dependencies [9bf7291]
57
+ - Updated dependencies [2e13791]
58
+ - Updated dependencies [9f95b35]
59
+ - Updated dependencies [66962ed]
60
+ - Updated dependencies [0d06df6]
61
+ - Updated dependencies [472524a]
62
+ - Updated dependencies [dd3ff01]
63
+ - Updated dependencies [d9c98f4]
64
+ - Updated dependencies [05d2819]
65
+ - Updated dependencies [9301f86]
66
+ - Updated dependencies [0a87932]
67
+ - Updated dependencies [c4a2fec]
68
+ - Updated dependencies [957b739]
69
+ - Updated dependencies [79457bd]
70
+ - Updated dependencies [a3f768e]
71
+ - Updated dependencies [7435eb5]
72
+ - Updated dependencies [8aa9e20]
73
+ - Updated dependencies [4617fab]
74
+ - Updated dependencies [ac34802]
75
+ - Updated dependencies [0054544]
76
+ - Updated dependencies [cb68df0]
77
+ - Updated dependencies [ad80501]
78
+ - Updated dependencies [68ecf2f]
79
+ - Updated dependencies [9e9c809]
80
+ - Updated dependencies [32831c6]
81
+ - Updated dependencies [6dc848c]
82
+ - Updated dependencies [6b98118]
83
+ - Updated dependencies [d0f9495]
84
+ - Updated dependencies [63d791d]
85
+ - Updated dependencies [87b828f]
86
+ - Updated dependencies [3f2f00c]
87
+ - Updated dependencies [bfdca8d]
88
+ - Updated dependencies [0ff02bb]
89
+ - Updated dependencies [7979f7f]
90
+ - Updated dependencies [39a4fab]
91
+ - Updated dependencies [44f4aba]
92
+ - Updated dependencies [9bd5ab5]
93
+ - Updated dependencies [57edfcb]
94
+ - Updated dependencies [faf8446]
95
+ - Updated dependencies [7ea4132]
96
+ - Updated dependencies [d1a034f]
97
+ - Updated dependencies [5c56081]
98
+ - Updated dependencies [fd65bc6]
99
+ - Updated dependencies [023ba40]
100
+ - Updated dependencies [ea7a7c9]
101
+ - Updated dependencies [26535e0]
102
+ - Updated dependencies [e030615]
103
+ - Updated dependencies [5e57fae]
104
+ - Updated dependencies [393138b]
105
+ - Updated dependencies [c57e248]
106
+ - Updated dependencies [88a8ee5]
107
+ - Updated dependencies [41fa418]
108
+ - Updated dependencies [205077b]
109
+ - Updated dependencies [71f938d]
110
+ - Updated dependencies [3795467]
111
+ - Updated dependencies [28a5ed5]
112
+ - Updated dependencies [7182d14]
113
+ - Updated dependencies [c1e6647]
114
+ - Updated dependencies [1766ede]
115
+ - Updated dependencies [811dff3]
116
+ - Updated dependencies [f10304b]
117
+ - Updated dependencies [dd5fd43]
118
+ - Updated dependencies [33f4a6a]
119
+ - Updated dependencies [383cbfa]
120
+ - Updated dependencies [27deb4d]
121
+ - Updated dependencies [c4df419]
122
+ - @ai-sdk/provider-utils@3.0.0
123
+ - @ai-sdk/provider@2.0.0
124
+
125
+ ## 2.0.0-beta.12
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [88a8ee5]
130
+ - @ai-sdk/provider-utils@3.0.0-beta.10
131
+
132
+ ## 2.0.0-beta.11
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [27deb4d]
137
+ - @ai-sdk/provider@2.0.0-beta.2
138
+ - @ai-sdk/provider-utils@3.0.0-beta.9
139
+
140
+ ## 2.0.0-beta.10
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [dd5fd43]
145
+ - @ai-sdk/provider-utils@3.0.0-beta.8
146
+
147
+ ## 2.0.0-beta.9
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [e7fcc86]
152
+ - @ai-sdk/provider-utils@3.0.0-beta.7
153
+
154
+ ## 2.0.0-beta.8
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [ac34802]
159
+ - @ai-sdk/provider-utils@3.0.0-beta.6
160
+
161
+ ## 2.0.0-beta.7
162
+
163
+ ### Patch Changes
164
+
165
+ - ae3a4fd: feat(provider/groq): add structured outputs support
166
+
167
+ ## 2.0.0-beta.6
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [57edfcb]
172
+ - Updated dependencies [383cbfa]
173
+ - @ai-sdk/provider-utils@3.0.0-beta.5
174
+
175
+ ## 2.0.0-beta.5
176
+
177
+ ### Patch Changes
178
+
179
+ - 205077b: fix: improve Zod compatibility
180
+ - Updated dependencies [205077b]
181
+ - @ai-sdk/provider-utils@3.0.0-beta.4
182
+
183
+ ## 2.0.0-beta.4
184
+
185
+ ### Patch Changes
186
+
187
+ - e0d9541: feat: add kimi k2 model via groq
188
+
189
+ ## 2.0.0-beta.3
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [05d2819]
194
+ - @ai-sdk/provider-utils@3.0.0-beta.3
195
+
196
+ ## 2.0.0-beta.2
197
+
198
+ ### Patch Changes
199
+
200
+ - d1a034f: feature: using Zod 4 for internal stuff
201
+ - Updated dependencies [0571b98]
202
+ - Updated dependencies [39a4fab]
203
+ - Updated dependencies [d1a034f]
204
+ - @ai-sdk/provider-utils@3.0.0-beta.2
205
+
206
+ ## 2.0.0-beta.1
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [742b7be]
211
+ - Updated dependencies [7cddb72]
212
+ - Updated dependencies [ccce59b]
213
+ - Updated dependencies [e2b9e4b]
214
+ - Updated dependencies [45c1ea2]
215
+ - Updated dependencies [e025824]
216
+ - Updated dependencies [0d06df6]
217
+ - Updated dependencies [472524a]
218
+ - Updated dependencies [dd3ff01]
219
+ - Updated dependencies [7435eb5]
220
+ - Updated dependencies [cb68df0]
221
+ - Updated dependencies [bfdca8d]
222
+ - Updated dependencies [44f4aba]
223
+ - Updated dependencies [023ba40]
224
+ - Updated dependencies [5e57fae]
225
+ - Updated dependencies [71f938d]
226
+ - Updated dependencies [28a5ed5]
227
+ - @ai-sdk/provider@2.0.0-beta.1
228
+ - @ai-sdk/provider-utils@3.0.0-beta.1
229
+
230
+ ## 2.0.0-alpha.15
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [48d257a]
235
+ - Updated dependencies [8ba77a7]
236
+ - @ai-sdk/provider@2.0.0-alpha.15
237
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
238
+
239
+ ## 2.0.0-alpha.14
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [b5da06a]
244
+ - Updated dependencies [63f9e9b]
245
+ - Updated dependencies [2e13791]
246
+ - @ai-sdk/provider@2.0.0-alpha.14
247
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
248
+
249
+ ## 2.0.0-alpha.13
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [68ecf2f]
254
+ - @ai-sdk/provider@2.0.0-alpha.13
255
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
256
+
257
+ ## 2.0.0-alpha.12
258
+
259
+ ### Patch Changes
260
+
261
+ - e2aceaf: feat: add raw chunk support
262
+ - Updated dependencies [e2aceaf]
263
+ - @ai-sdk/provider@2.0.0-alpha.12
264
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
265
+
266
+ ## 2.0.0-alpha.11
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [c1e6647]
271
+ - @ai-sdk/provider@2.0.0-alpha.11
272
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
273
+
274
+ ## 2.0.0-alpha.10
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [c4df419]
279
+ - @ai-sdk/provider@2.0.0-alpha.10
280
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
281
+
282
+ ## 2.0.0-alpha.9
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies [811dff3]
287
+ - @ai-sdk/provider@2.0.0-alpha.9
288
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
289
+
290
+ ## 2.0.0-alpha.8
291
+
292
+ ### Patch Changes
293
+
294
+ - Updated dependencies [4fef487]
295
+ - Updated dependencies [9222aeb]
296
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
297
+ - @ai-sdk/provider@2.0.0-alpha.8
298
+
299
+ ## 2.0.0-alpha.7
300
+
301
+ ### Patch Changes
302
+
303
+ - Updated dependencies [5c56081]
304
+ - @ai-sdk/provider@2.0.0-alpha.7
305
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
306
+
307
+ ## 2.0.0-alpha.6
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies [0d2c085]
312
+ - @ai-sdk/provider@2.0.0-alpha.6
313
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
314
+
315
+ ## 2.0.0-alpha.4
316
+
317
+ ### Patch Changes
318
+
319
+ - Updated dependencies [dc714f3]
320
+ - @ai-sdk/provider@2.0.0-alpha.4
321
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
322
+
323
+ ## 2.0.0-alpha.3
324
+
325
+ ### Patch Changes
326
+
327
+ - Updated dependencies [6b98118]
328
+ - @ai-sdk/provider@2.0.0-alpha.3
329
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
330
+
331
+ ## 2.0.0-alpha.2
332
+
333
+ ### Patch Changes
334
+
335
+ - Updated dependencies [26535e0]
336
+ - @ai-sdk/provider@2.0.0-alpha.2
337
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
338
+
339
+ ## 2.0.0-alpha.1
340
+
341
+ ### Patch Changes
342
+
343
+ - Updated dependencies [3f2f00c]
344
+ - @ai-sdk/provider@2.0.0-alpha.1
345
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
346
+
347
+ ## 2.0.0-canary.20
348
+
349
+ ### Patch Changes
350
+
351
+ - Updated dependencies [faf8446]
352
+ - @ai-sdk/provider-utils@3.0.0-canary.19
353
+
354
+ ## 2.0.0-canary.19
355
+
356
+ ### Patch Changes
357
+
358
+ - Updated dependencies [40acf9b]
359
+ - @ai-sdk/provider-utils@3.0.0-canary.18
360
+
361
+ ## 2.0.0-canary.18
362
+
363
+ ### Patch Changes
364
+
365
+ - Updated dependencies [ea7a7c9]
366
+ - @ai-sdk/provider-utils@3.0.0-canary.17
367
+
368
+ ## 2.0.0-canary.17
369
+
370
+ ### Patch Changes
371
+
372
+ - Updated dependencies [87b828f]
373
+ - @ai-sdk/provider-utils@3.0.0-canary.16
374
+
375
+ ## 2.0.0-canary.16
376
+
377
+ ### Patch Changes
378
+
379
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
380
+ - Updated dependencies [a571d6e]
381
+ - Updated dependencies [a8c8bd5]
382
+ - Updated dependencies [7979f7f]
383
+ - Updated dependencies [41fa418]
384
+ - @ai-sdk/provider-utils@3.0.0-canary.15
385
+ - @ai-sdk/provider@2.0.0-canary.14
386
+
387
+ ## 2.0.0-canary.15
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [957b739]
392
+ - Updated dependencies [9bd5ab5]
393
+ - @ai-sdk/provider-utils@3.0.0-canary.14
394
+ - @ai-sdk/provider@2.0.0-canary.13
395
+
396
+ ## 2.0.0-canary.14
397
+
398
+ ### Patch Changes
399
+
400
+ - Updated dependencies [7b3ae3f]
401
+ - Updated dependencies [0ff02bb]
402
+ - @ai-sdk/provider@2.0.0-canary.12
403
+ - @ai-sdk/provider-utils@3.0.0-canary.13
404
+
405
+ ## 2.0.0-canary.13
406
+
407
+ ### Patch Changes
408
+
409
+ - Updated dependencies [9bf7291]
410
+ - Updated dependencies [4617fab]
411
+ - Updated dependencies [e030615]
412
+ - @ai-sdk/provider@2.0.0-canary.11
413
+ - @ai-sdk/provider-utils@3.0.0-canary.12
414
+
415
+ ## 2.0.0-canary.12
416
+
417
+ ### Patch Changes
418
+
419
+ - Updated dependencies [66962ed]
420
+ - Updated dependencies [9301f86]
421
+ - Updated dependencies [a3f768e]
422
+ - @ai-sdk/provider-utils@3.0.0-canary.11
423
+ - @ai-sdk/provider@2.0.0-canary.10
424
+
425
+ ## 2.0.0-canary.11
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [e86be6f]
430
+ - @ai-sdk/provider@2.0.0-canary.9
431
+ - @ai-sdk/provider-utils@3.0.0-canary.10
432
+
433
+ ## 2.0.0-canary.10
434
+
435
+ ### Patch Changes
436
+
437
+ - Updated dependencies [95857aa]
438
+ - Updated dependencies [7ea4132]
439
+ - @ai-sdk/provider@2.0.0-canary.8
440
+ - @ai-sdk/provider-utils@3.0.0-canary.9
441
+
3
442
  ## 2.0.0-canary.9
4
443
 
5
444
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - Groq Provider
2
2
 
3
- The **[Groq provider](https://sdk.vercel.ai/providers/ai-sdk-providers/groq)** for the [AI SDK](https://sdk.vercel.ai/docs)
3
+ The **[Groq provider](https://ai-sdk.dev/providers/ai-sdk-providers/groq)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains language model support for the Groq chat and completion APIs and embedding model support for the Groq embeddings API.
5
5
 
6
6
  ## Setup
@@ -33,4 +33,4 @@ const { text } = await generateText({
33
33
 
34
34
  ## Documentation
35
35
 
36
- Please check out the **[Groq provider documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/groq)** for more information.
36
+ Please check out the **[Groq provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/groq)** for more information.
package/dist/index.d.mts CHANGED
@@ -1,38 +1,18 @@
1
- import { ProviderV2, LanguageModelV2, TranscriptionModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, LanguageModelV2, TranscriptionModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod';
3
+ import { z } from 'zod/v4';
4
4
 
5
- type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.3-70b-versatile' | 'llama-3.1-8b-instant' | 'llama-guard-3-8b' | 'llama3-70b-8192' | 'llama3-8b-8192' | 'mixtral-8x7b-32768' | 'meta-llama/llama-4-scout-17b-16e-instruct' | 'qwen-qwq-32b' | 'mistral-saba-24b' | 'qwen-2.5-32b' | 'deepseek-r1-distill-qwen-32b' | 'deepseek-r1-distill-llama-70b' | (string & {});
6
- interface GroqChatSettings {
7
- /**
8
- Automatically download images and pass the image as data to the model.
9
- Groq supports image URLs for public models, so this is only needed for
10
- private models or when the images are not publicly accessible.
11
-
12
- Defaults to `false`.
13
- */
14
- downloadImages?: boolean;
15
- }
5
+ type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.1-8b-instant' | 'llama-3.3-70b-versatile' | 'meta-llama/llama-guard-4-12b' | 'deepseek-r1-distill-llama-70b' | 'meta-llama/llama-4-maverick-17b-128e-instruct' | 'meta-llama/llama-4-scout-17b-16e-instruct' | 'meta-llama/llama-prompt-guard-2-22m' | 'meta-llama/llama-prompt-guard-2-86m' | 'mistral-saba-24b' | 'moonshotai/kimi-k2-instruct' | 'qwen/qwen3-32b' | 'llama-guard-3-8b' | 'llama3-70b-8192' | 'llama3-8b-8192' | 'mixtral-8x7b-32768' | 'qwen-qwq-32b' | 'qwen-2.5-32b' | 'deepseek-r1-distill-qwen-32b' | (string & {});
16
6
  declare const groqProviderOptions: z.ZodObject<{
17
- reasoningFormat: z.ZodOptional<z.ZodNullable<z.ZodEnum<["parsed", "raw", "hidden"]>>>;
18
- /**
19
- * Whether to enable parallel function calling during tool use. Default to true.
20
- */
21
- parallelToolCalls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
- /**
23
- * A unique identifier representing your end-user, which can help OpenAI to
24
- * monitor and detect abuse. Learn more.
25
- */
26
- user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, "strip", z.ZodTypeAny, {
28
- user?: string | null | undefined;
29
- reasoningFormat?: "parsed" | "raw" | "hidden" | null | undefined;
30
- parallelToolCalls?: boolean | null | undefined;
31
- }, {
32
- user?: string | null | undefined;
33
- reasoningFormat?: "parsed" | "raw" | "hidden" | null | undefined;
34
- parallelToolCalls?: boolean | null | undefined;
35
- }>;
7
+ reasoningFormat: z.ZodOptional<z.ZodEnum<{
8
+ parsed: "parsed";
9
+ raw: "raw";
10
+ hidden: "hidden";
11
+ }>>;
12
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
13
+ user: z.ZodOptional<z.ZodString>;
14
+ structuredOutputs: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>;
36
16
  type GroqProviderOptions = z.infer<typeof groqProviderOptions>;
37
17
 
38
18
  type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'distil-whisper-large-v3-en' | 'whisper-large-v3' | (string & {});
@@ -41,15 +21,15 @@ interface GroqProvider extends ProviderV2 {
41
21
  /**
42
22
  Creates a model for text generation.
43
23
  */
44
- (modelId: GroqChatModelId, settings?: GroqChatSettings): LanguageModelV2;
24
+ (modelId: GroqChatModelId): LanguageModelV2;
45
25
  /**
46
26
  Creates an Groq chat model for text generation.
47
27
  */
48
- languageModel(modelId: GroqChatModelId, settings?: GroqChatSettings): LanguageModelV2;
28
+ languageModel(modelId: GroqChatModelId): LanguageModelV2;
49
29
  /**
50
30
  Creates a model for transcription.
51
31
  */
52
- transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV1;
32
+ transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV2;
53
33
  }
54
34
  interface GroqProviderSettings {
55
35
  /**
package/dist/index.d.ts CHANGED
@@ -1,38 +1,18 @@
1
- import { ProviderV2, LanguageModelV2, TranscriptionModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, LanguageModelV2, TranscriptionModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod';
3
+ import { z } from 'zod/v4';
4
4
 
5
- type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.3-70b-versatile' | 'llama-3.1-8b-instant' | 'llama-guard-3-8b' | 'llama3-70b-8192' | 'llama3-8b-8192' | 'mixtral-8x7b-32768' | 'meta-llama/llama-4-scout-17b-16e-instruct' | 'qwen-qwq-32b' | 'mistral-saba-24b' | 'qwen-2.5-32b' | 'deepseek-r1-distill-qwen-32b' | 'deepseek-r1-distill-llama-70b' | (string & {});
6
- interface GroqChatSettings {
7
- /**
8
- Automatically download images and pass the image as data to the model.
9
- Groq supports image URLs for public models, so this is only needed for
10
- private models or when the images are not publicly accessible.
11
-
12
- Defaults to `false`.
13
- */
14
- downloadImages?: boolean;
15
- }
5
+ type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.1-8b-instant' | 'llama-3.3-70b-versatile' | 'meta-llama/llama-guard-4-12b' | 'deepseek-r1-distill-llama-70b' | 'meta-llama/llama-4-maverick-17b-128e-instruct' | 'meta-llama/llama-4-scout-17b-16e-instruct' | 'meta-llama/llama-prompt-guard-2-22m' | 'meta-llama/llama-prompt-guard-2-86m' | 'mistral-saba-24b' | 'moonshotai/kimi-k2-instruct' | 'qwen/qwen3-32b' | 'llama-guard-3-8b' | 'llama3-70b-8192' | 'llama3-8b-8192' | 'mixtral-8x7b-32768' | 'qwen-qwq-32b' | 'qwen-2.5-32b' | 'deepseek-r1-distill-qwen-32b' | (string & {});
16
6
  declare const groqProviderOptions: z.ZodObject<{
17
- reasoningFormat: z.ZodOptional<z.ZodNullable<z.ZodEnum<["parsed", "raw", "hidden"]>>>;
18
- /**
19
- * Whether to enable parallel function calling during tool use. Default to true.
20
- */
21
- parallelToolCalls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
- /**
23
- * A unique identifier representing your end-user, which can help OpenAI to
24
- * monitor and detect abuse. Learn more.
25
- */
26
- user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, "strip", z.ZodTypeAny, {
28
- user?: string | null | undefined;
29
- reasoningFormat?: "parsed" | "raw" | "hidden" | null | undefined;
30
- parallelToolCalls?: boolean | null | undefined;
31
- }, {
32
- user?: string | null | undefined;
33
- reasoningFormat?: "parsed" | "raw" | "hidden" | null | undefined;
34
- parallelToolCalls?: boolean | null | undefined;
35
- }>;
7
+ reasoningFormat: z.ZodOptional<z.ZodEnum<{
8
+ parsed: "parsed";
9
+ raw: "raw";
10
+ hidden: "hidden";
11
+ }>>;
12
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
13
+ user: z.ZodOptional<z.ZodString>;
14
+ structuredOutputs: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>;
36
16
  type GroqProviderOptions = z.infer<typeof groqProviderOptions>;
37
17
 
38
18
  type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'distil-whisper-large-v3-en' | 'whisper-large-v3' | (string & {});
@@ -41,15 +21,15 @@ interface GroqProvider extends ProviderV2 {
41
21
  /**
42
22
  Creates a model for text generation.
43
23
  */
44
- (modelId: GroqChatModelId, settings?: GroqChatSettings): LanguageModelV2;
24
+ (modelId: GroqChatModelId): LanguageModelV2;
45
25
  /**
46
26
  Creates an Groq chat model for text generation.
47
27
  */
48
- languageModel(modelId: GroqChatModelId, settings?: GroqChatSettings): LanguageModelV2;
28
+ languageModel(modelId: GroqChatModelId): LanguageModelV2;
49
29
  /**
50
30
  Creates a model for transcription.
51
31
  */
52
- transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV1;
32
+ transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV2;
53
33
  }
54
34
  interface GroqProviderSettings {
55
35
  /**