Update to gemini-3.5-flash-lite - #1870
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the default Gemini model from "gemini-3.1-flash-lite" to "gemini-3.5-flash-lite" across multiple view models and sample configurations, and updates the image generation sample to use "gemini-3.1-flash-image". The reviewer suggested defining a single static constant for the default model name to avoid duplication and improve maintainability.
| useCases: [UseCase], | ||
| navRoute: String, | ||
| modelName: String = "gemini-3.1-flash-lite", | ||
| modelName: String = "gemini-3.5-flash-lite", |
There was a problem hiding this comment.
The default model name "gemini-3.5-flash-lite" is hardcoded here and duplicated across four other files (ChatViewModel.swift, FunctionCallingViewModel.swift, GroundingViewModel.swift, and MultimodalViewModel.swift). To improve maintainability and ensure a single source of truth, consider defining a static constant on Sample (e.g., public static let defaultModelName = "gemini-3.5-flash-lite") and referencing it across all these files. This will make future model updates much easier and less error-prone.
Update to gemini-3.5-flash-lite and gemini-3.1-flash-image