AICompletionAttachment¶
Represents a file sent to the model with a message.
Remarks¶
The file is passed to the model as it is. Whether the model can read the file type depends on the provider and the model; the file is not checked or converted.
Capabilities¶
Properties¶
- AICompletionAttachment.DataBase64: The file content in Base64, without a
data:URI prefix. Use Files.GetBase64 to read a stored file. - AICompletionAttachment.FileName: The file name. It is passed to the model as information only.
- AICompletionAttachment.MimeType: The MIME type of the file, such as
'application/pdf'or'image/png'.