@ai-sdk/groq 4.0.0-beta.8 → 4.0.0-canary.35

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,241 @@
1
1
  # @ai-sdk/groq
2
2
 
3
+ ## 4.0.0-canary.35
4
+
5
+ ### Patch Changes
6
+
7
+ - 0c4c275: trigger initial canary release
8
+ - Updated dependencies [0c4c275]
9
+ - @ai-sdk/provider-utils@5.0.0-canary.31
10
+ - @ai-sdk/provider@4.0.0-canary.15
11
+
12
+ ## 4.0.0-beta.34
13
+
14
+ ### Major Changes
15
+
16
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
17
+
18
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [08d2129]
23
+ - @ai-sdk/provider-utils@5.0.0-beta.30
24
+
25
+ ## 4.0.0-beta.33
26
+
27
+ ### Patch Changes
28
+
29
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
30
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
31
+ - Updated dependencies [9bd6512]
32
+ - Updated dependencies [258c093]
33
+ - Updated dependencies [b6783da]
34
+ - @ai-sdk/provider-utils@5.0.0-beta.29
35
+ - @ai-sdk/provider@4.0.0-beta.14
36
+
37
+ ## 4.0.0-beta.32
38
+
39
+ ### Patch Changes
40
+
41
+ - 9f0e36c: trigger release for all packages after provenance setup
42
+ - Updated dependencies [9f0e36c]
43
+ - @ai-sdk/provider@4.0.0-beta.13
44
+ - @ai-sdk/provider-utils@5.0.0-beta.28
45
+
46
+ ## 4.0.0-beta.31
47
+
48
+ ### Patch Changes
49
+
50
+ - 58a2ad7: fix: more precise default message for tool execution denial
51
+ - Updated dependencies [785fe16]
52
+ - Updated dependencies [67df0a0]
53
+ - Updated dependencies [befb78c]
54
+ - Updated dependencies [0458559]
55
+ - Updated dependencies [5852c0a]
56
+ - Updated dependencies [fc92055]
57
+ - @ai-sdk/provider-utils@5.0.0-beta.27
58
+
59
+ ## 4.0.0-beta.30
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [2e98477]
64
+ - @ai-sdk/provider-utils@5.0.0-beta.26
65
+
66
+ ## 4.0.0-beta.29
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [eea8d98]
71
+ - @ai-sdk/provider-utils@5.0.0-beta.25
72
+
73
+ ## 4.0.0-beta.28
74
+
75
+ ### Patch Changes
76
+
77
+ - f807e45: Extract shared `StreamingToolCallTracker` class into `@ai-sdk/provider-utils` to deduplicate streaming tool call handling across OpenAI-compatible providers. Also adds missing `generateId()` fallback for `toolCallId` in Alibaba's `doGenerate` path and ensures all providers finalize unfinished tool calls during stream flush.
78
+ - Updated dependencies [f807e45]
79
+ - @ai-sdk/provider-utils@5.0.0-beta.24
80
+
81
+ ## 4.0.0-beta.27
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [350ea38]
86
+ - @ai-sdk/provider-utils@5.0.0-beta.23
87
+
88
+ ## 4.0.0-beta.26
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [083947b]
93
+ - @ai-sdk/provider-utils@5.0.0-beta.22
94
+
95
+ ## 4.0.0-beta.25
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [add1126]
100
+ - @ai-sdk/provider-utils@5.0.0-beta.21
101
+
102
+ ## 4.0.0-beta.24
103
+
104
+ ### Patch Changes
105
+
106
+ - b3976a2: Add workflow serialization support to all provider models.
107
+
108
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
109
+
110
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
111
+
112
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
113
+
114
+ - Updated dependencies [b3976a2]
115
+ - Updated dependencies [ff5eba1]
116
+ - @ai-sdk/provider-utils@5.0.0-beta.20
117
+ - @ai-sdk/provider@4.0.0-beta.12
118
+
119
+ ## 4.0.0-beta.23
120
+
121
+ ### Major Changes
122
+
123
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [ef992f8]
128
+ - @ai-sdk/provider@4.0.0-beta.11
129
+ - @ai-sdk/provider-utils@5.0.0-beta.19
130
+
131
+ ## 4.0.0-beta.22
132
+
133
+ ### Patch Changes
134
+
135
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
136
+ - Updated dependencies [90e2d8a]
137
+ - @ai-sdk/provider-utils@5.0.0-beta.18
138
+
139
+ ## 4.0.0-beta.21
140
+
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies [3ae1786]
144
+ - @ai-sdk/provider-utils@5.0.0-beta.17
145
+
146
+ ## 4.0.0-beta.20
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [176466a]
151
+ - @ai-sdk/provider@4.0.0-beta.10
152
+ - @ai-sdk/provider-utils@5.0.0-beta.16
153
+
154
+ ## 4.0.0-beta.19
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [e311194]
159
+ - @ai-sdk/provider@4.0.0-beta.9
160
+ - @ai-sdk/provider-utils@5.0.0-beta.15
161
+
162
+ ## 4.0.0-beta.18
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [34bd95d]
167
+ - Updated dependencies [008271d]
168
+ - @ai-sdk/provider@4.0.0-beta.8
169
+ - @ai-sdk/provider-utils@5.0.0-beta.14
170
+
171
+ ## 4.0.0-beta.17
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [b0c2869]
176
+ - Updated dependencies [7e26e81]
177
+ - @ai-sdk/provider-utils@5.0.0-beta.13
178
+
179
+ ## 4.0.0-beta.16
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [46d1149]
184
+ - @ai-sdk/provider-utils@5.0.0-beta.12
185
+
186
+ ## 4.0.0-beta.15
187
+
188
+ ### Patch Changes
189
+
190
+ - 6fd51c0: fix(provider): preserve error type prefix in getErrorMessage
191
+ - Updated dependencies [6fd51c0]
192
+ - @ai-sdk/provider-utils@5.0.0-beta.11
193
+ - @ai-sdk/provider@4.0.0-beta.7
194
+
195
+ ## 4.0.0-beta.14
196
+
197
+ ### Patch Changes
198
+
199
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
200
+ - Updated dependencies [c29a26f]
201
+ - @ai-sdk/provider-utils@5.0.0-beta.10
202
+ - @ai-sdk/provider@4.0.0-beta.6
203
+
204
+ ## 4.0.0-beta.13
205
+
206
+ ### Patch Changes
207
+
208
+ - 38fc777: Add AI Gateway hint to provider READMEs
209
+
210
+ ## 4.0.0-beta.12
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [2e17091]
215
+ - @ai-sdk/provider-utils@5.0.0-beta.9
216
+
217
+ ## 4.0.0-beta.11
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [986c6fd]
222
+ - Updated dependencies [493295c]
223
+ - @ai-sdk/provider-utils@5.0.0-beta.8
224
+
225
+ ## 4.0.0-beta.10
226
+
227
+ ### Patch Changes
228
+
229
+ - 7bf717f: feat: Groq support for performance service tier
230
+
231
+ ## 4.0.0-beta.9
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [1f509d4]
236
+ - @ai-sdk/provider-utils@5.0.0-beta.7
237
+ - @ai-sdk/provider@4.0.0-beta.5
238
+
3
239
  ## 4.0.0-beta.8
4
240
 
5
241
  ### Patch Changes
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
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, transcription support, and browser search tool.
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Groq (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).
7
+
6
8
  ## Setup
7
9
 
8
10
  The Groq provider is available in the `@ai-sdk/groq` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
4
4
  import { z } from 'zod/v4';
5
5
 
6
6
  type GroqChatModelId = 'gemma2-9b-it' | 'llama-3.1-8b-instant' | 'llama-3.3-70b-versatile' | 'meta-llama/llama-guard-4-12b' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | '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' | 'moonshotai/kimi-k2-instruct-0905' | '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 & {});
7
- declare const groqLanguageModelOptions: z.ZodObject<{
7
+ declare const groqLanguageModelChatOptions: z.ZodObject<{
8
8
  reasoningFormat: z.ZodOptional<z.ZodEnum<{
9
9
  parsed: "parsed";
10
10
  raw: "raw";
@@ -23,11 +23,12 @@ declare const groqLanguageModelOptions: z.ZodObject<{
23
23
  strictJsonSchema: z.ZodOptional<z.ZodBoolean>;
24
24
  serviceTier: z.ZodOptional<z.ZodEnum<{
25
25
  on_demand: "on_demand";
26
+ performance: "performance";
26
27
  flex: "flex";
27
28
  auto: "auto";
28
29
  }>>;
29
30
  }, z.core.$strip>;
30
- type GroqLanguageModelOptions = z.infer<typeof groqLanguageModelOptions>;
31
+ type GroqLanguageModelChatOptions = z.infer<typeof groqLanguageModelChatOptions>;
31
32
 
32
33
  type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'whisper-large-v3' | (string & {});
33
34
  declare const groqTranscriptionModelOptions: _ai_sdk_provider_utils.LazySchema<{
@@ -40,7 +41,7 @@ declare const groqTranscriptionModelOptions: _ai_sdk_provider_utils.LazySchema<{
40
41
  type GroqTranscriptionModelOptions = InferSchema<typeof groqTranscriptionModelOptions>;
41
42
 
42
43
  declare const groqTools: {
43
- browserSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
44
+ browserSearch: _ai_sdk_provider_utils.ProviderExecutedToolFactory<{}, {}, {}, {}>;
44
45
  };
45
46
 
46
47
  interface GroqProvider extends ProviderV4 {
@@ -105,8 +106,8 @@ declare const groq: GroqProvider;
105
106
  *
106
107
  * @see https://console.groq.com/docs/browser-search
107
108
  */
108
- declare const browserSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
109
+ declare const browserSearch: _ai_sdk_provider_utils.ProviderExecutedToolFactory<{}, {}, {}, {}>;
109
110
 
110
111
  declare const VERSION: string;
111
112
 
112
- export { type GroqLanguageModelOptions, type GroqProvider, type GroqLanguageModelOptions as GroqProviderOptions, type GroqProviderSettings, type GroqTranscriptionModelOptions, VERSION, browserSearch, createGroq, groq };
113
+ export { type GroqLanguageModelChatOptions, type GroqLanguageModelChatOptions as GroqLanguageModelOptions, type GroqProvider, type GroqLanguageModelChatOptions as GroqProviderOptions, type GroqProviderSettings, type GroqTranscriptionModelOptions, VERSION, browserSearch, createGroq, groq };