AICompletionFile¶
Represents a file returned by the model.
Capabilities¶
Properties¶
- AICompletionFile.DataBase64: The file content in Base64. It can be sent back to the model as an AICompletionAttachment.
- AICompletionFile.FileName: The file name, when the model returned one.
- AICompletionFile.MimeType: The MIME type of the file, such as
'image/png'.
Methods¶
- AICompletionFile.ToBase64: Returns the file content in Base64, ready for Files.AddBase64.
- AICompletionFile.ToText: Returns the file content decoded as UTF-8 text, for example for a returned CSV or JSON file.