FileData

class FileData(val fileData: String? = null, val fileId: String? = null, val filename: String? = null)(source)

File data containing optional file content, ID and filename information. Used to pass file data to OpenAI APIs requiring file handling capabilities.

Constructors

Link copied to clipboard
constructor(fileData: String? = null, fileId: String? = null, filename: String? = null)

Properties

Link copied to clipboard

The base64 encoded file data, used when passing the file to the model as a string.

Link copied to clipboard

The ID of an uploaded file to use as input.

Link copied to clipboard

The name of the file, used when passing the file to the model as a string.