@ai-sdk/provider 2.0.0-alpha.10 → 2.0.0-alpha.11
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 +6 -0
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -918,7 +918,7 @@ A source that has been used as input to generate the response.
|
|
918
918
|
type LanguageModelV2Source = {
|
919
919
|
type: 'source';
|
920
920
|
/**
|
921
|
-
*
|
921
|
+
* The type of source - URL sources reference web content.
|
922
922
|
*/
|
923
923
|
sourceType: 'url';
|
924
924
|
/**
|
@@ -937,6 +937,32 @@ type LanguageModelV2Source = {
|
|
937
937
|
* Additional provider metadata for the source.
|
938
938
|
*/
|
939
939
|
providerMetadata?: SharedV2ProviderMetadata;
|
940
|
+
} | {
|
941
|
+
type: 'source';
|
942
|
+
/**
|
943
|
+
* The type of source - document sources reference files/documents.
|
944
|
+
*/
|
945
|
+
sourceType: 'document';
|
946
|
+
/**
|
947
|
+
* The ID of the source.
|
948
|
+
*/
|
949
|
+
id: string;
|
950
|
+
/**
|
951
|
+
* IANA media type of the document (e.g., 'application/pdf').
|
952
|
+
*/
|
953
|
+
mediaType: string;
|
954
|
+
/**
|
955
|
+
* The title of the document.
|
956
|
+
*/
|
957
|
+
title: string;
|
958
|
+
/**
|
959
|
+
* Optional filename of the document.
|
960
|
+
*/
|
961
|
+
filename?: string;
|
962
|
+
/**
|
963
|
+
* Additional provider metadata for the source.
|
964
|
+
*/
|
965
|
+
providerMetadata?: SharedV2ProviderMetadata;
|
940
966
|
};
|
941
967
|
|
942
968
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -918,7 +918,7 @@ A source that has been used as input to generate the response.
|
|
918
918
|
type LanguageModelV2Source = {
|
919
919
|
type: 'source';
|
920
920
|
/**
|
921
|
-
*
|
921
|
+
* The type of source - URL sources reference web content.
|
922
922
|
*/
|
923
923
|
sourceType: 'url';
|
924
924
|
/**
|
@@ -937,6 +937,32 @@ type LanguageModelV2Source = {
|
|
937
937
|
* Additional provider metadata for the source.
|
938
938
|
*/
|
939
939
|
providerMetadata?: SharedV2ProviderMetadata;
|
940
|
+
} | {
|
941
|
+
type: 'source';
|
942
|
+
/**
|
943
|
+
* The type of source - document sources reference files/documents.
|
944
|
+
*/
|
945
|
+
sourceType: 'document';
|
946
|
+
/**
|
947
|
+
* The ID of the source.
|
948
|
+
*/
|
949
|
+
id: string;
|
950
|
+
/**
|
951
|
+
* IANA media type of the document (e.g., 'application/pdf').
|
952
|
+
*/
|
953
|
+
mediaType: string;
|
954
|
+
/**
|
955
|
+
* The title of the document.
|
956
|
+
*/
|
957
|
+
title: string;
|
958
|
+
/**
|
959
|
+
* Optional filename of the document.
|
960
|
+
*/
|
961
|
+
filename?: string;
|
962
|
+
/**
|
963
|
+
* Additional provider metadata for the source.
|
964
|
+
*/
|
965
|
+
providerMetadata?: SharedV2ProviderMetadata;
|
940
966
|
};
|
941
967
|
|
942
968
|
/**
|