uploadFile

suspend fun uploadFile(file: Path, mimeType: String, displayName: String): GeminiFile

Uploads a file to the Gemini API.

Return

The uploaded file wrapped as a GeminiFile.

Parameters

file

The file to upload.

mimeType

The MIME type of the file.

displayName

The display name of the file.