ofFileData

fun ofFileData(filename: String, fileData: String): InputFile(source)

Creates a new file input with file data.

Return

A new InputFile instance.

Parameters

filename

The name of the file to be sent to the model.

fileData

The content of the file to be sent to the model.