createCachedContent

fun createCachedContent(inputJson: CachedContent, model: String = "gemini-1.5-flash"): CachedContent

Creates a new cached content entry in the system.

Return

The created CachedContent object as returned by the server.

Parameters

inputJson

The CachedContent object to be created.

model

The model identifier, defaulting to "gemini-1.5-flash-001".