Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HybridInferenceViewModel : ViewModel() {
val uiState: StateFlow<HybridInferenceUiState> = _uiState.asStateFlow()

private val model = Firebase.ai(backend = GenerativeBackend.googleAI()).generativeModel(
modelName = "gemini-3.1-flash-lite-preview",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
Comment thread
thatfiredev marked this conversation as resolved.
onDeviceConfig = OnDeviceConfig(mode = InferenceMode.PREFER_ON_DEVICE)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AudioSummarizationViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-3.1-flash-lite-preview"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat(
listOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AudioTranslationViewModel : ChatViewModel() {

init {
val generativeModel = Firebase.ai(backend = GenerativeBackend.vertexAI()).generativeModel(
modelName = "gemini-2.5-flash"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CourseRecommendationsViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-2.5-flash",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
systemInstruction = content {
text(
"You are a chatbot for the county's performing and fine arts" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DocumentComparisonViewModel : ChatViewModel() {

init {
val generativeModel = Firebase.ai(backend = GenerativeBackend.vertexAI()).generativeModel(
modelName = "gemini-2.5-flash"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GoogleSearchGroundingViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-2.5-flash",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
tools = listOf(Tool.googleSearch())
)
chat = generativeModel.startChat()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ImageBlogCreatorViewModel : ChatViewModel() {

init {
val generativeModel = Firebase.ai(backend = GenerativeBackend.vertexAI()).generativeModel(
modelName = "gemini-2.5-flash"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TranslationViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-3.1-flash-lite-preview",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
systemInstruction = content {
text("Only output the translated text")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TravelTipsViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-2.5-flash",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
systemInstruction = content {
text(
"You are a Travel assistant. You will answer" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VideoHashtagGeneratorViewModel : ChatViewModel() {

init {
val generativeModel = Firebase.ai(backend = GenerativeBackend.vertexAI()).generativeModel(
modelName = "gemini-2.5-flash"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class VideoSummarizationViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-2.5-flash"
modelName = "gemini-3.1-flash-lite"
Comment thread
thatfiredev marked this conversation as resolved.
)
chat = generativeModel.startChat(chatHistory)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class WeatherChatViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-2.5-flash",
modelName = "gemini-3.1-flash-lite",
Comment thread
thatfiredev marked this conversation as resolved.
tools = listOf(
Tool.functionDeclarations(
listOf(
Expand Down
Loading