@ai-sdk/provider 3.0.17 → 3.0.18

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,11 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 3.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 3983fea: fix(provider): preserve media types on tool result file URLs and match full MIME types exactly when checking native URL support.
8
+
3
9
  ## 3.0.17
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1336,6 +1336,11 @@ type LanguageModelV3ToolResultOutput = {
1336
1336
  * URL of the file.
1337
1337
  */
1338
1338
  url: string;
1339
+ /**
1340
+ * IANA media type.
1341
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
1342
+ */
1343
+ mediaType?: string;
1339
1344
  /**
1340
1345
  * Provider-specific options.
1341
1346
  */
package/dist/index.d.ts CHANGED
@@ -1336,6 +1336,11 @@ type LanguageModelV3ToolResultOutput = {
1336
1336
  * URL of the file.
1337
1337
  */
1338
1338
  url: string;
1339
+ /**
1340
+ * IANA media type.
1341
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
1342
+ */
1343
+ mediaType?: string;
1339
1344
  /**
1340
1345
  * Provider-specific options.
1341
1346
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "3.0.17",
3
+ "version": "3.0.18",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -332,6 +332,12 @@ export type LanguageModelV3ToolResultOutput =
332
332
  */
333
333
  url: string;
334
334
 
335
+ /**
336
+ * IANA media type.
337
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
338
+ */
339
+ mediaType?: string;
340
+
335
341
  /**
336
342
  * Provider-specific options.
337
343
  */