ChatCompletionMessageFile
A capability document attachment; native text/vision adapters refuse it.
typeType (string)
Document content discriminator.
Constant value:
fileDefault value:
filefile objectrequired
Inline file metadata and encoded bytes.
filenameFilename (string)required
Display filename, not a local path.
Possible values: non-empty and <= 128 characters
file_dataFile Data (string)required
Inline base64 data URL accepted by the selected capability.
Possible values: non-empty and <= 16777216 characters
ChatCompletionMessageFile
{
"type": "file",
"file": {
"filename": "string",
"file_data": "string"
}
}