The flutterflow gemini integration is out date. Because the model gemini 1.5-pro is no longer available.
The app in production or even in test mode return the error "gemini-1-5-flash-001-tuning-is-not-found-for-api-version-v1beta"
The issue is in the code gemini.dart (GenerativeModel(model: 'gemini-1.5-pro', apiKey: _kGeminiApiKey);)
Gemini-1.5-pro discontinuation date from Google: September 24, 2025
Does anyone know a quick workaround for changing this part of the code? If I download and edit it, I won’t be able to re-import it into FlutterFlow to publish — I’d have to handle the entire process manually. Another option would be to build an API, but with text-from-image it’s more complicated since I’d also need to convert the image format