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

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