@ai-sdk/mistral 4.0.0-beta.9 → 4.0.0-canary.34

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,225 @@
1
1
  # @ai-sdk/mistral
2
2
 
3
+ ## 4.0.0-canary.34
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.33
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.32
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.31
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.30
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.29
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.28
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.27
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [f807e45]
78
+ - @ai-sdk/provider-utils@5.0.0-beta.24
79
+
80
+ ## 4.0.0-beta.26
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [350ea38]
85
+ - @ai-sdk/provider-utils@5.0.0-beta.23
86
+
87
+ ## 4.0.0-beta.25
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [083947b]
92
+ - @ai-sdk/provider-utils@5.0.0-beta.22
93
+
94
+ ## 4.0.0-beta.24
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [add1126]
99
+ - @ai-sdk/provider-utils@5.0.0-beta.21
100
+
101
+ ## 4.0.0-beta.23
102
+
103
+ ### Patch Changes
104
+
105
+ - b3976a2: Add workflow serialization support to all provider models.
106
+
107
+ **`@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.
108
+
109
+ **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.
110
+
111
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
112
+
113
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
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.22
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.21
132
+
133
+ ### Patch Changes
134
+
135
+ - Updated dependencies [90e2d8a]
136
+ - @ai-sdk/provider-utils@5.0.0-beta.18
137
+
138
+ ## 4.0.0-beta.20
139
+
140
+ ### Patch Changes
141
+
142
+ - Updated dependencies [3ae1786]
143
+ - @ai-sdk/provider-utils@5.0.0-beta.17
144
+
145
+ ## 4.0.0-beta.19
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [176466a]
150
+ - @ai-sdk/provider@4.0.0-beta.10
151
+ - @ai-sdk/provider-utils@5.0.0-beta.16
152
+
153
+ ## 4.0.0-beta.18
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [e311194]
158
+ - @ai-sdk/provider@4.0.0-beta.9
159
+ - @ai-sdk/provider-utils@5.0.0-beta.15
160
+
161
+ ## 4.0.0-beta.17
162
+
163
+ ### Patch Changes
164
+
165
+ - Updated dependencies [34bd95d]
166
+ - Updated dependencies [008271d]
167
+ - @ai-sdk/provider@4.0.0-beta.8
168
+ - @ai-sdk/provider-utils@5.0.0-beta.14
169
+
170
+ ## 4.0.0-beta.16
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [b0c2869]
175
+ - Updated dependencies [7e26e81]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.13
177
+
178
+ ## 4.0.0-beta.15
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [46d1149]
183
+ - @ai-sdk/provider-utils@5.0.0-beta.12
184
+
185
+ ## 4.0.0-beta.14
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [6fd51c0]
190
+ - @ai-sdk/provider-utils@5.0.0-beta.11
191
+ - @ai-sdk/provider@4.0.0-beta.7
192
+
193
+ ## 4.0.0-beta.13
194
+
195
+ ### Patch Changes
196
+
197
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
198
+ - Updated dependencies [c29a26f]
199
+ - @ai-sdk/provider-utils@5.0.0-beta.10
200
+ - @ai-sdk/provider@4.0.0-beta.6
201
+
202
+ ## 4.0.0-beta.12
203
+
204
+ ### Patch Changes
205
+
206
+ - 38fc777: Add AI Gateway hint to provider READMEs
207
+
208
+ ## 4.0.0-beta.11
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies [2e17091]
213
+ - @ai-sdk/provider-utils@5.0.0-beta.9
214
+
215
+ ## 4.0.0-beta.10
216
+
217
+ ### Patch Changes
218
+
219
+ - Updated dependencies [986c6fd]
220
+ - Updated dependencies [493295c]
221
+ - @ai-sdk/provider-utils@5.0.0-beta.8
222
+
3
223
  ## 4.0.0-beta.9
4
224
 
5
225
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Mistral provider](https://ai-sdk.dev/providers/ai-sdk-providers/mistral)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the Mistral chat API.
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Mistral (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).
6
+
5
7
  ## Setup
6
8
 
7
9
  The Mistral provider is available in the `@ai-sdk/mistral` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
5
  type MistralChatModelId = 'ministral-3b-latest' | 'ministral-8b-latest' | 'ministral-14b-latest' | 'mistral-large-latest' | 'mistral-medium-latest' | 'mistral-large-2512' | 'mistral-medium-2508' | 'mistral-medium-2505' | 'mistral-small-2506' | 'pixtral-large-latest' | 'mistral-small-latest' | 'mistral-small-2603' | 'magistral-medium-latest' | 'magistral-small-latest' | 'magistral-medium-2509' | 'magistral-small-2509' | (string & {});
6
- declare const mistralLanguageModelOptions: z.ZodObject<{
6
+ declare const mistralLanguageModelChatOptions: z.ZodObject<{
7
7
  safePrompt: z.ZodOptional<z.ZodBoolean>;
8
8
  documentImageLimit: z.ZodOptional<z.ZodNumber>;
9
9
  documentPageLimit: z.ZodOptional<z.ZodNumber>;
@@ -15,7 +15,7 @@ declare const mistralLanguageModelOptions: z.ZodObject<{
15
15
  high: "high";
16
16
  }>>;
17
17
  }, z.core.$strip>;
18
- type MistralLanguageModelOptions = z.infer<typeof mistralLanguageModelOptions>;
18
+ type MistralLanguageModelChatOptions = z.infer<typeof mistralLanguageModelChatOptions>;
19
19
 
20
20
  type MistralEmbeddingModelId = 'mistral-embed' | (string & {});
21
21
 
@@ -79,4 +79,4 @@ declare const mistral: MistralProvider;
79
79
 
80
80
  declare const VERSION: string;
81
81
 
82
- export { type MistralLanguageModelOptions, type MistralProvider, type MistralProviderSettings, VERSION, createMistral, mistral };
82
+ export { type MistralLanguageModelChatOptions, type MistralLanguageModelChatOptions as MistralLanguageModelOptions, type MistralProvider, type MistralProviderSettings, VERSION, createMistral, mistral };