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 @@ -275,8 +275,6 @@ val FIREBASE_AI_SAMPLES = listOf(
description = "Use bidirectional streaming to get information about" +
" weather conditions for a specific US city on a specific date",
navRoute = "stream",
backend = GenerativeBackend.vertexAI(),
modelName = "gemini-2.0-flash-live-preview-04-09",
categories = listOf(Category.LIVE_API, Category.AUDIO, Category.FUNCTION_CALLING),
tools = listOf(
Tool.functionDeclarations(
Expand Down Expand Up @@ -305,8 +303,6 @@ val FIREBASE_AI_SAMPLES = listOf(
description = "Use bidirectional streaming to chat with Gemini using your" +
" phone's camera",
navRoute = "streamVideo",
backend = GenerativeBackend.vertexAI(),
modelName = "gemini-2.0-flash-live-preview-04-09",
categories = listOf(Category.LIVE_API, Category.VIDEO, Category.FUNCTION_CALLING),
tools = listOf(
Tool.functionDeclarations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class BidiViewModel(savedStateHandle: SavedStateHandle) : ViewModel() {
val liveModel =
FirebaseAI.getInstance(Firebase.app, sample.backend)
.liveModel(
modelName = sample.modelName ?: "gemini-live-2.5-flash",
// If you are using Vertex AI, change the model name to
// "gemini-live-2.5-flash-preview-native-audio-09-2025"
modelName = sample.modelName ?: "gemini-2.5-flash-native-audio-preview-09-2025",
generationConfig = liveGenerationConfig,
tools = sample.tools,
)
Expand Down
Loading