@ai-sdk/provider 4.0.0-beta.11 → 4.0.0-beta.12
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
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
|
-
*
|
|
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
|
@@ -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
|
|
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;
|