GenerativeModelHelpers

Helper functions for initializing, downloading, and checking the status of ML Kit's Generative Models.

Functions

Link copied to clipboard
suspend fun initGenerativeModel(): GenerativeModel

Initializes a GenerativeModel instance with the default configuration.

suspend fun initGenerativeModel(config: GenerationConfig): GenerativeModel

Initializes a GenerativeModel instance with the given config.

suspend fun initGenerativeModel(block: GenerationConfig.Builder.() -> Unit): GenerativeModel

A convenience function to initialize a GenerativeModel instance with a configuration block.