Skip to content

Commit

Permalink
Merge pull request #672 from gquental/gemini-vertexai
Browse files Browse the repository at this point in the history
Update Gemini version and SDK
  • Loading branch information
zainhoda authored Oct 23, 2024
2 parents 932131f + baf3dbe commit b7b030a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanna/google/gemini_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, config=None):
if "model_name" in config:
model_name = config["model_name"]
else:
model_name = "gemini-1.0-pro"
model_name = "gemini-1.5-pro"

self.google_api_key = None

Expand All @@ -30,7 +30,7 @@ def __init__(self, config=None):
self.chat_model = genai.GenerativeModel(model_name)
else:
# Authenticate using VertexAI
from vertexai.preview.generative_models import GenerativeModel
from vertexai.generative_models import GenerativeModel
self.chat_model = GenerativeModel(model_name)

def system_message(self, message: str) -> any:
Expand Down

0 comments on commit b7b030a

Please sign in to comment.