EdgeAIG's picture
download
raw
988 Bytes
import { SharedV3ProviderMetadata } from '../../shared';
/**
* A file that has been generated by the model.
* Generated files as base64 encoded strings or binary data.
* The files should be returned without any unnecessary conversion.
*/
export type LanguageModelV3File = {
type: 'file';
/**
* The IANA media type of the file, e.g. `image/png` or `audio/mp3`.
*
* @see https://www.iana.org/assignments/media-types/media-types.xhtml
*/
mediaType: string;
/**
* Generated file data as base64 encoded strings or binary data.
*
* The file data should be returned without any unnecessary conversion.
* If the API returns base64 encoded strings, the file data should be returned
* as base64 encoded strings. If the API returns binary data, the file data should
* be returned as binary data.
*/
data: string | Uint8Array;
/**
* Optional provider-specific metadata for the file part.
*/
providerMetadata?: SharedV3ProviderMetadata;
};

Xet Storage Details

Size:
988 Bytes
·
Xet hash:
64afb159e4295d3a51ed7de8737b96351656232e7fecef17b1a9a72461cb2af2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.