Skip to content

URGENT: Switching to Gemini 2.0 Flash does not work #53

@JamieVarsityCollege

Description

@JamieVarsityCollege

Setting the model to gemini-2.0-flash does not actually set it.
I have proof of this (In the image below from GCP), you can see it is using gemini-1.5-flash):
Image
final file = File(image); try { print("Starting Gemini API call..."); final response = await gemini.prompt( **model: 'models/gemini-2.0-flash',** parts: [ Part.text(""" Describe this image. """), Part.uint8List(file.readAsBytesSync()) ], ).timeout( const Duration(seconds: 60), onTimeout: () { print("Gemini API call timed out"); throw TimeoutException('Gemini API call timed out after 60 seconds'); }, );
I desperately need to use gemini-2.0-flash as it has a 200 RPD(Requests per day) limit instead of 50 like in 1.5-flash.
Please fix this ASAP or advise if I am setting the model incorrectly.
Kind regards,
Jamie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions