modelName constant

String const modelName

Always target the newest Gemini Flash. gemini-flash-latest is Google's alias that tracks the current Flash model, so this keeps working as older versions (e.g. gemini-1.5-flash) are retired.

Implementation

static const String modelName = 'models/gemini-flash-latest';