Skip to content
Open
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 @@ -40,7 +40,7 @@ class NanoBanana2ViewModel : ChatViewModel() {
val generativeModel = Firebase.ai(
backend = GenerativeBackend.googleAI()
).generativeModel(
modelName = "gemini-3.1-flash-image",
modelName = "gemini-nano-banana-2.1",
generationConfig = generationConfig {
responseModalities = listOf(ResponseModality.TEXT, ResponseModality.IMAGE)
// Optionally specify additional configuration
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import com.google.firebase.quickstart.ai.feature.text.NanoBananaLiteRoute
import com.google.firebase.quickstart.ai.feature.text.NanoBananaLiteViewModel
import com.google.firebase.quickstart.ai.feature.text.NanoBananaProRoute
import com.google.firebase.quickstart.ai.feature.text.NanoBananaProViewModel
import com.google.firebase.quickstart.ai.feature.text.NanoBananaRoute
import com.google.firebase.quickstart.ai.feature.text.NanoBananaViewModel
import com.google.firebase.quickstart.ai.feature.text.ServerPromptTemplateRoute
import com.google.firebase.quickstart.ai.feature.text.ServerPromptTemplateViewModel
import com.google.firebase.quickstart.ai.feature.text.SvgRoute
Expand Down Expand Up @@ -89,37 +87,29 @@ val FIREBASE_AI_SAMPLES = listOf(
categories = listOf(Category.MULTIMODAL_UNDERSTANDING)
),
Sample(
title = "Gemini 3.1 Flash Image Lite (Nano Banana Lite)",
description = "Generate and/or edit images using Nano Banana Lite",
route = NanoBananaLiteRoute,
title = "Gemini Nano Banana 2.1",
description = "Generate and/or edit images using Nano Banana 2.1",
route = NanoBanana2Route,
screenType = ScreenType.CHAT,
viewModelClass = NanoBananaLiteViewModel::class,
viewModelClass = NanoBanana2ViewModel::class,
categories = listOf(Category.NANO_BANANA, Category.GEMINI3)
),
Sample(
title = "Gemini 3.1 Flash Image (Nano Banana 2)",
description = "Generate and/or edit images using Nano Banana 2",
route = NanoBanana2Route,
title = "Nano Banana 2 Lite (Gemini 3.1 Flash Image Lite)",
description = "Generate and/or edit images using Nano Banana 2 Lite",
Comment on lines +98 to +99

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The PR description states that the Nano Banana samples should be renamed to follow the same naming pattern as "Gemini Nano Banana 2.1". However, this sample is named "Nano Banana 2 Lite (Gemini 3.1 Flash Image Lite)" and still references version "2" instead of "2.1". To align with the new naming pattern, it should be renamed to "Gemini Nano Banana 2.1 Lite".

Suggested change
title = "Nano Banana 2 Lite (Gemini 3.1 Flash Image Lite)",
description = "Generate and/or edit images using Nano Banana 2 Lite",
title = "Gemini Nano Banana 2.1 Lite",
description = "Generate and/or edit images using Nano Banana 2.1 Lite",

route = NanoBananaLiteRoute,
screenType = ScreenType.CHAT,
viewModelClass = NanoBanana2ViewModel::class,
viewModelClass = NanoBananaLiteViewModel::class,
categories = listOf(Category.NANO_BANANA, Category.GEMINI3)
),
Sample(
title = "Gemini 3 Pro Image (Nano Banana Pro)",
title = "Nano Banana Pro (Gemini 3 Pro Image)",
description = "Generate and/or edit images using Nano Banana Pro",
Comment on lines +106 to 107

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To follow the same naming pattern as "Gemini Nano Banana 2.1" and maintain consistency across the samples, this sample should be renamed to "Gemini Nano Banana Pro".

Suggested change
title = "Nano Banana Pro (Gemini 3 Pro Image)",
description = "Generate and/or edit images using Nano Banana Pro",
title = "Gemini Nano Banana Pro",
description = "Generate and/or edit images using Nano Banana Pro",

route = NanoBananaProRoute,
screenType = ScreenType.CHAT,
viewModelClass = NanoBananaProViewModel::class,
categories = listOf(Category.NANO_BANANA, Category.GEMINI3)
),
Sample(
title = "Gemini 2.5 Flash Image (Nano Banana)",
description = "Generate and/or edit images using Nano Banana",
route = NanoBananaRoute,
screenType = ScreenType.CHAT,
viewModelClass = NanoBananaViewModel::class,
categories = listOf(Category.NANO_BANANA)
),
Sample(
title = "Document comparison (Agent Platform)",
description = "Compare the contents of 2 documents stored in Cloud Storage",
Expand Down
Loading