Skip to content

Commit 261c236

Browse files
committed
Fix model name in Vertex AI multi-modal sample (#12645)
1 parent dda7acf commit 261c236

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseVertexAI/Sample/GenerativeAIMultimodalSample/ViewModels/PhotoReasoningViewModel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class PhotoReasoningViewModel: ObservableObject {
4444
private var model: GenerativeModel?
4545

4646
init() {
47-
model = VertexAI.vertexAI(region: "us-central1").generativeModel(modelName: "gemini-1.0-pro")
47+
let vertexAI = VertexAI.vertexAI(region: "us-central1")
48+
model = vertexAI.generativeModel(modelName: "gemini-1.0-pro-vision")
4849
}
4950

5051
func reason() async {

0 commit comments

Comments
 (0)