Skip to content

Commit

Permalink
Fix model name in Vertex AI multi-modal sample (#12645)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored and paulb777 committed Apr 2, 2024
1 parent 27617c4 commit 950c4c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class PhotoReasoningViewModel: ObservableObject {
private var model: GenerativeModel?

init() {
model = VertexAI.vertexAI(region: "us-central1").generativeModel(modelName: "gemini-1.0-pro")
let vertexAI = VertexAI.vertexAI(region: "us-central1")
model = vertexAI.generativeModel(modelName: "gemini-1.0-pro-vision")
}

func reason() async {
Expand Down

0 comments on commit 950c4c8

Please sign in to comment.