class_docstr: Integration with the Google generative AI Python Library
class_docstr_tok: ["Integration","with","the","Google","generative","AI","Python","Library"]
code: def create(
      self,
      target: str,
      df: Optional[pd.DataFrame] = None,
      args: Optional[Dict] = None,
  ) -> None:
      if "model" not in args["using"]:
          args["using"]["model"] = self.default_chat_model
      elif args["using"]["model"] not in self.supported_chat_models:
          raise Exception(
              f"Invalid chat model. Please use one of {self.supported_chat_models}"
          )
  
      api_key = self._get_google_gemini_api_key(args)
  
      try:
          genai.configure(api_key=api_key)
          model = genai.GenerativeModel(args["using"]["model"])
          model.generate_content("test")
      except Exception as e:
          raise Exception(
              f"{e}: Invalid api key please check your api key"
          )
  
      args["using"]["api_key"] = api_key
  
      self.model_storage.json_set("args", args)
  
file_path: mindsdb/mindsdb/integrations/handlers/google_gemini_handler/google_gemini_handler.py
imports: import os
  from typing import Dict, Optional
  import google.generativeai
  import pandas
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 2 for calling the GoogleGeminiHandler obj's underlying member method code with example usage: obj.create(target, df, args) without return types