@ai-sdk/provider 4.0.0-beta.11 → 4.0.0-beta.13

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,17 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 4.0.0-beta.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f0e36c: trigger release for all packages after provenance setup
8
+
9
+ ## 4.0.0-beta.12
10
+
11
+ ### Patch Changes
12
+
13
+ - ff5eba1: feat: roll `image-*` tool output types into their equivalent `file-*` types
14
+
3
15
  ## 4.0.0-beta.11
4
16
 
5
17
  ### Major Changes
package/dist/index.d.ts CHANGED
@@ -1952,30 +1952,6 @@ type LanguageModelV4ToolResultOutput = {
1952
1952
  * URL of the file.
1953
1953
  */
1954
1954
  url: string;
1955
- /**
1956
- * Provider-specific options.
1957
- */
1958
- providerOptions?: SharedV4ProviderOptions;
1959
- } | {
1960
- type: 'file-reference';
1961
- /**
1962
- * Provider-specific references for the file.
1963
- * The key is the provider name, e.g. 'openai' or 'anthropic'.
1964
- */
1965
- providerReference: SharedV4ProviderReference;
1966
- /**
1967
- * Provider-specific options.
1968
- */
1969
- providerOptions?: SharedV4ProviderOptions;
1970
- } | {
1971
- /**
1972
- * Images that are referenced using base64 encoded data.
1973
- */
1974
- type: 'image-data';
1975
- /**
1976
- * Base-64 encoded image data.
1977
- */
1978
- data: string;
1979
1955
  /**
1980
1956
  * IANA media type.
1981
1957
  * @see https://www.iana.org/assignments/media-types/media-types.xhtml
@@ -1986,25 +1962,9 @@ type LanguageModelV4ToolResultOutput = {
1986
1962
  */
1987
1963
  providerOptions?: SharedV4ProviderOptions;
1988
1964
  } | {
1965
+ type: 'file-reference';
1989
1966
  /**
1990
- * Images that are referenced using a URL.
1991
- */
1992
- type: 'image-url';
1993
- /**
1994
- * URL of the image.
1995
- */
1996
- url: string;
1997
- /**
1998
- * Provider-specific options.
1999
- */
2000
- providerOptions?: SharedV4ProviderOptions;
2001
- } | {
2002
- /**
2003
- * Images that are referenced using a provider reference.
2004
- */
2005
- type: 'image-file-reference';
2006
- /**
2007
- * Provider-specific references for the image file.
1967
+ * Provider-specific references for the file.
2008
1968
  * The key is the provider name, e.g. 'openai' or 'anthropic'.
2009
1969
  */
2010
1970
  providerReference: SharedV4ProviderReference;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "4.0.0-beta.11",
3
+ "version": "4.0.0-beta.13",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -39,12 +39,14 @@
39
39
  "node": ">=18"
40
40
  },
41
41
  "publishConfig": {
42
- "access": "public"
42
+ "access": "public",
43
+ "provenance": true
43
44
  },
44
45
  "homepage": "https://ai-sdk.dev/docs",
45
46
  "repository": {
46
47
  "type": "git",
47
- "url": "git+https://github.com/vercel/ai.git"
48
+ "url": "https://github.com/vercel/ai",
49
+ "directory": "packages/provider"
48
50
  },
49
51
  "bugs": {
50
52
  "url": "https://github.com/vercel/ai/issues"
@@ -374,36 +374,6 @@ export type LanguageModelV4ToolResultOutput =
374
374
  */
375
375
  url: string;
376
376
 
377
- /**
378
- * Provider-specific options.
379
- */
380
- providerOptions?: SharedV4ProviderOptions;
381
- }
382
- | {
383
- type: 'file-reference';
384
-
385
- /**
386
- * Provider-specific references for the file.
387
- * The key is the provider name, e.g. 'openai' or 'anthropic'.
388
- */
389
- providerReference: SharedV4ProviderReference;
390
-
391
- /**
392
- * Provider-specific options.
393
- */
394
- providerOptions?: SharedV4ProviderOptions;
395
- }
396
- | {
397
- /**
398
- * Images that are referenced using base64 encoded data.
399
- */
400
- type: 'image-data';
401
-
402
- /**
403
- * Base-64 encoded image data.
404
- */
405
- data: string;
406
-
407
377
  /**
408
378
  * IANA media type.
409
379
  * @see https://www.iana.org/assignments/media-types/media-types.xhtml
@@ -416,29 +386,10 @@ export type LanguageModelV4ToolResultOutput =
416
386
  providerOptions?: SharedV4ProviderOptions;
417
387
  }
418
388
  | {
419
- /**
420
- * Images that are referenced using a URL.
421
- */
422
- type: 'image-url';
423
-
424
- /**
425
- * URL of the image.
426
- */
427
- url: string;
428
-
429
- /**
430
- * Provider-specific options.
431
- */
432
- providerOptions?: SharedV4ProviderOptions;
433
- }
434
- | {
435
- /**
436
- * Images that are referenced using a provider reference.
437
- */
438
- type: 'image-file-reference';
389
+ type: 'file-reference';
439
390
 
440
391
  /**
441
- * Provider-specific references for the image file.
392
+ * Provider-specific references for the file.
442
393
  * The key is the provider name, e.g. 'openai' or 'anthropic'.
443
394
  */
444
395
  providerReference: SharedV4ProviderReference;