@ai-sdk/mistral 4.0.0-beta.9 → 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,231 @@
1
1
  # @ai-sdk/mistral
2
2
 
3
+ ## 4.0.0-canary.35
4
+
5
+ ### Patch Changes
6
+
7
+ - 8abd80f: Map cached token counts from Mistral API usage response. Previously all prompt tokens were reported as noCacheTokens, ignoring the `num_cached_tokens`, `prompt_tokens_details.cached_tokens`, and `prompt_token_details.cached_tokens` fields returned by Mistral.
8
+
9
+ ## 4.0.0-canary.34
10
+
11
+ ### Patch Changes
12
+
13
+ - 0c4c275: trigger initial canary release
14
+ - Updated dependencies [0c4c275]
15
+ - @ai-sdk/provider-utils@5.0.0-canary.31
16
+ - @ai-sdk/provider@4.0.0-canary.15
17
+
18
+ ## 4.0.0-beta.33
19
+
20
+ ### Major Changes
21
+
22
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
23
+
24
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [08d2129]
29
+ - @ai-sdk/provider-utils@5.0.0-beta.30
30
+
31
+ ## 4.0.0-beta.32
32
+
33
+ ### Patch Changes
34
+
35
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
36
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
37
+ - Updated dependencies [9bd6512]
38
+ - Updated dependencies [258c093]
39
+ - Updated dependencies [b6783da]
40
+ - @ai-sdk/provider-utils@5.0.0-beta.29
41
+ - @ai-sdk/provider@4.0.0-beta.14
42
+
43
+ ## 4.0.0-beta.31
44
+
45
+ ### Patch Changes
46
+
47
+ - 9f0e36c: trigger release for all packages after provenance setup
48
+ - Updated dependencies [9f0e36c]
49
+ - @ai-sdk/provider@4.0.0-beta.13
50
+ - @ai-sdk/provider-utils@5.0.0-beta.28
51
+
52
+ ## 4.0.0-beta.30
53
+
54
+ ### Patch Changes
55
+
56
+ - 58a2ad7: fix: more precise default message for tool execution denial
57
+ - Updated dependencies [785fe16]
58
+ - Updated dependencies [67df0a0]
59
+ - Updated dependencies [befb78c]
60
+ - Updated dependencies [0458559]
61
+ - Updated dependencies [5852c0a]
62
+ - Updated dependencies [fc92055]
63
+ - @ai-sdk/provider-utils@5.0.0-beta.27
64
+
65
+ ## 4.0.0-beta.29
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [2e98477]
70
+ - @ai-sdk/provider-utils@5.0.0-beta.26
71
+
72
+ ## 4.0.0-beta.28
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [eea8d98]
77
+ - @ai-sdk/provider-utils@5.0.0-beta.25
78
+
79
+ ## 4.0.0-beta.27
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [f807e45]
84
+ - @ai-sdk/provider-utils@5.0.0-beta.24
85
+
86
+ ## 4.0.0-beta.26
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [350ea38]
91
+ - @ai-sdk/provider-utils@5.0.0-beta.23
92
+
93
+ ## 4.0.0-beta.25
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [083947b]
98
+ - @ai-sdk/provider-utils@5.0.0-beta.22
99
+
100
+ ## 4.0.0-beta.24
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [add1126]
105
+ - @ai-sdk/provider-utils@5.0.0-beta.21
106
+
107
+ ## 4.0.0-beta.23
108
+
109
+ ### Patch Changes
110
+
111
+ - b3976a2: Add workflow serialization support to all provider models.
112
+
113
+ **`@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.
114
+
115
+ **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.
116
+
117
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
118
+
119
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
120
+ - Updated dependencies [b3976a2]
121
+ - Updated dependencies [ff5eba1]
122
+ - @ai-sdk/provider-utils@5.0.0-beta.20
123
+ - @ai-sdk/provider@4.0.0-beta.12
124
+
125
+ ## 4.0.0-beta.22
126
+
127
+ ### Major Changes
128
+
129
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [ef992f8]
134
+ - @ai-sdk/provider@4.0.0-beta.11
135
+ - @ai-sdk/provider-utils@5.0.0-beta.19
136
+
137
+ ## 4.0.0-beta.21
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [90e2d8a]
142
+ - @ai-sdk/provider-utils@5.0.0-beta.18
143
+
144
+ ## 4.0.0-beta.20
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [3ae1786]
149
+ - @ai-sdk/provider-utils@5.0.0-beta.17
150
+
151
+ ## 4.0.0-beta.19
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [176466a]
156
+ - @ai-sdk/provider@4.0.0-beta.10
157
+ - @ai-sdk/provider-utils@5.0.0-beta.16
158
+
159
+ ## 4.0.0-beta.18
160
+
161
+ ### Patch Changes
162
+
163
+ - Updated dependencies [e311194]
164
+ - @ai-sdk/provider@4.0.0-beta.9
165
+ - @ai-sdk/provider-utils@5.0.0-beta.15
166
+
167
+ ## 4.0.0-beta.17
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [34bd95d]
172
+ - Updated dependencies [008271d]
173
+ - @ai-sdk/provider@4.0.0-beta.8
174
+ - @ai-sdk/provider-utils@5.0.0-beta.14
175
+
176
+ ## 4.0.0-beta.16
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [b0c2869]
181
+ - Updated dependencies [7e26e81]
182
+ - @ai-sdk/provider-utils@5.0.0-beta.13
183
+
184
+ ## 4.0.0-beta.15
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [46d1149]
189
+ - @ai-sdk/provider-utils@5.0.0-beta.12
190
+
191
+ ## 4.0.0-beta.14
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [6fd51c0]
196
+ - @ai-sdk/provider-utils@5.0.0-beta.11
197
+ - @ai-sdk/provider@4.0.0-beta.7
198
+
199
+ ## 4.0.0-beta.13
200
+
201
+ ### Patch Changes
202
+
203
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
204
+ - Updated dependencies [c29a26f]
205
+ - @ai-sdk/provider-utils@5.0.0-beta.10
206
+ - @ai-sdk/provider@4.0.0-beta.6
207
+
208
+ ## 4.0.0-beta.12
209
+
210
+ ### Patch Changes
211
+
212
+ - 38fc777: Add AI Gateway hint to provider READMEs
213
+
214
+ ## 4.0.0-beta.11
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [2e17091]
219
+ - @ai-sdk/provider-utils@5.0.0-beta.9
220
+
221
+ ## 4.0.0-beta.10
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [986c6fd]
226
+ - Updated dependencies [493295c]
227
+ - @ai-sdk/provider-utils@5.0.0-beta.8
228
+
3
229
  ## 4.0.0-beta.9
4
230
 
5
231
  ### 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 };