@ai-sdk/groq 2.0.0-alpha.9 → 2.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,147 @@
1
1
  # @ai-sdk/groq
2
2
 
3
+ ## 2.0.0-beta.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [dd5fd43]
8
+ - @ai-sdk/provider-utils@3.0.0-beta.8
9
+
10
+ ## 2.0.0-beta.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [e7fcc86]
15
+ - @ai-sdk/provider-utils@3.0.0-beta.7
16
+
17
+ ## 2.0.0-beta.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [ac34802]
22
+ - @ai-sdk/provider-utils@3.0.0-beta.6
23
+
24
+ ## 2.0.0-beta.7
25
+
26
+ ### Patch Changes
27
+
28
+ - ae3a4fd: feat(provider/groq): add structured outputs support
29
+
30
+ ## 2.0.0-beta.6
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [57edfcb]
35
+ - Updated dependencies [383cbfa]
36
+ - @ai-sdk/provider-utils@3.0.0-beta.5
37
+
38
+ ## 2.0.0-beta.5
39
+
40
+ ### Patch Changes
41
+
42
+ - 205077b: fix: improve Zod compatibility
43
+ - Updated dependencies [205077b]
44
+ - @ai-sdk/provider-utils@3.0.0-beta.4
45
+
46
+ ## 2.0.0-beta.4
47
+
48
+ ### Patch Changes
49
+
50
+ - e0d9541: feat: add kimi k2 model via groq
51
+
52
+ ## 2.0.0-beta.3
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [05d2819]
57
+ - @ai-sdk/provider-utils@3.0.0-beta.3
58
+
59
+ ## 2.0.0-beta.2
60
+
61
+ ### Patch Changes
62
+
63
+ - d1a034f: feature: using Zod 4 for internal stuff
64
+ - Updated dependencies [0571b98]
65
+ - Updated dependencies [39a4fab]
66
+ - Updated dependencies [d1a034f]
67
+ - @ai-sdk/provider-utils@3.0.0-beta.2
68
+
69
+ ## 2.0.0-beta.1
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [742b7be]
74
+ - Updated dependencies [7cddb72]
75
+ - Updated dependencies [ccce59b]
76
+ - Updated dependencies [e2b9e4b]
77
+ - Updated dependencies [45c1ea2]
78
+ - Updated dependencies [e025824]
79
+ - Updated dependencies [0d06df6]
80
+ - Updated dependencies [472524a]
81
+ - Updated dependencies [dd3ff01]
82
+ - Updated dependencies [7435eb5]
83
+ - Updated dependencies [cb68df0]
84
+ - Updated dependencies [bfdca8d]
85
+ - Updated dependencies [44f4aba]
86
+ - Updated dependencies [023ba40]
87
+ - Updated dependencies [5e57fae]
88
+ - Updated dependencies [71f938d]
89
+ - Updated dependencies [28a5ed5]
90
+ - @ai-sdk/provider@2.0.0-beta.1
91
+ - @ai-sdk/provider-utils@3.0.0-beta.1
92
+
93
+ ## 2.0.0-alpha.15
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [48d257a]
98
+ - Updated dependencies [8ba77a7]
99
+ - @ai-sdk/provider@2.0.0-alpha.15
100
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
101
+
102
+ ## 2.0.0-alpha.14
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [b5da06a]
107
+ - Updated dependencies [63f9e9b]
108
+ - Updated dependencies [2e13791]
109
+ - @ai-sdk/provider@2.0.0-alpha.14
110
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
111
+
112
+ ## 2.0.0-alpha.13
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [68ecf2f]
117
+ - @ai-sdk/provider@2.0.0-alpha.13
118
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
119
+
120
+ ## 2.0.0-alpha.12
121
+
122
+ ### Patch Changes
123
+
124
+ - e2aceaf: feat: add raw chunk support
125
+ - Updated dependencies [e2aceaf]
126
+ - @ai-sdk/provider@2.0.0-alpha.12
127
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
128
+
129
+ ## 2.0.0-alpha.11
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [c1e6647]
134
+ - @ai-sdk/provider@2.0.0-alpha.11
135
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
136
+
137
+ ## 2.0.0-alpha.10
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [c4df419]
142
+ - @ai-sdk/provider@2.0.0-alpha.10
143
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
144
+
3
145
  ## 2.0.0-alpha.9
4
146
 
5
147
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,28 +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 & {});
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 & {});
6
6
  declare const groqProviderOptions: z.ZodObject<{
7
- reasoningFormat: z.ZodOptional<z.ZodEnum<["parsed", "raw", "hidden"]>>;
8
- /**
9
- * Whether to enable parallel function calling during tool use. Default to true.
10
- */
7
+ reasoningFormat: z.ZodOptional<z.ZodEnum<{
8
+ parsed: "parsed";
9
+ raw: "raw";
10
+ hidden: "hidden";
11
+ }>>;
11
12
  parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
12
- /**
13
- * A unique identifier representing your end-user, which can help OpenAI to
14
- * monitor and detect abuse. Learn more.
15
- */
16
13
  user: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- user?: string | undefined;
19
- reasoningFormat?: "parsed" | "raw" | "hidden" | undefined;
20
- parallelToolCalls?: boolean | undefined;
21
- }, {
22
- user?: string | undefined;
23
- reasoningFormat?: "parsed" | "raw" | "hidden" | undefined;
24
- parallelToolCalls?: boolean | undefined;
25
- }>;
14
+ structuredOutputs: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>;
26
16
  type GroqProviderOptions = z.infer<typeof groqProviderOptions>;
27
17
 
28
18
  type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'distil-whisper-large-v3-en' | 'whisper-large-v3' | (string & {});
@@ -39,7 +29,7 @@ interface GroqProvider extends ProviderV2 {
39
29
  /**
40
30
  Creates a model for transcription.
41
31
  */
42
- transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV1;
32
+ transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV2;
43
33
  }
44
34
  interface GroqProviderSettings {
45
35
  /**
package/dist/index.d.ts CHANGED
@@ -1,28 +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 & {});
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 & {});
6
6
  declare const groqProviderOptions: z.ZodObject<{
7
- reasoningFormat: z.ZodOptional<z.ZodEnum<["parsed", "raw", "hidden"]>>;
8
- /**
9
- * Whether to enable parallel function calling during tool use. Default to true.
10
- */
7
+ reasoningFormat: z.ZodOptional<z.ZodEnum<{
8
+ parsed: "parsed";
9
+ raw: "raw";
10
+ hidden: "hidden";
11
+ }>>;
11
12
  parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
12
- /**
13
- * A unique identifier representing your end-user, which can help OpenAI to
14
- * monitor and detect abuse. Learn more.
15
- */
16
13
  user: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- user?: string | undefined;
19
- reasoningFormat?: "parsed" | "raw" | "hidden" | undefined;
20
- parallelToolCalls?: boolean | undefined;
21
- }, {
22
- user?: string | undefined;
23
- reasoningFormat?: "parsed" | "raw" | "hidden" | undefined;
24
- parallelToolCalls?: boolean | undefined;
25
- }>;
14
+ structuredOutputs: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>;
26
16
  type GroqProviderOptions = z.infer<typeof groqProviderOptions>;
27
17
 
28
18
  type GroqTranscriptionModelId = 'whisper-large-v3-turbo' | 'distil-whisper-large-v3-en' | 'whisper-large-v3' | (string & {});
@@ -39,7 +29,7 @@ interface GroqProvider extends ProviderV2 {
39
29
  /**
40
30
  Creates a model for transcription.
41
31
  */
42
- transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV1;
32
+ transcription(modelId: GroqTranscriptionModelId): TranscriptionModelV2;
43
33
  }
44
34
  interface GroqProviderSettings {
45
35
  /**