EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /language-model /v2 /language-model-v2-file.ts
| /** | |
| * 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 LanguageModelV2File = { | |
| 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; | |
| }; | |
Xet Storage Details
- Size:
- 810 Bytes
- Xet hash:
- 1bf162197a3fc85d988fe1bcac254879a2f5c1cce33c7978624180fcbd7eb3b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.