Skip to content

Commit

Permalink
[Vertex AI] Switch to gemini-1.5-pro-preview-0409 in sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed May 10, 2024
1 parent ebcb29c commit c2adcbf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ConversationViewModel: ObservableObject {
private var chatTask: Task<Void, Never>?

init() {
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.0-pro")
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-pro-preview-0409")
chat = model.startChat()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FunctionCallingViewModel: ObservableObject {

init() {
model = VertexAI.vertexAI().generativeModel(
modelName: "gemini-1.0-pro",
modelName: "gemini-1.5-pro-preview-0409",
tools: [Tool(functionDeclarations: [
FunctionDeclaration(
name: "get_exchange_rate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PhotoReasoningViewModel: ObservableObject {
private var model: GenerativeModel?

init() {
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.0-pro-vision")
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-pro-preview-0409")
}

func reason() async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SummarizeViewModel: ObservableObject {
private var model: GenerativeModel?

init() {
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.0-pro")
model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-pro-preview-0409")
}

func summarize(inputText: String) async {
Expand Down

0 comments on commit c2adcbf

Please sign in to comment.