AIOnDeviceModel

constructor(context: Context, maximumResponseTokens: Int = DEFAULT_RESPONSE_TOKENS)

Parameters

context

Any context; the application context is kept.

maximumResponseTokens

The longest answer, in tokens. The model writes at most MODEL_MAXIMUM_RESPONSE_TOKENS, so larger values are capped.