To authenticate with Gemini, you must pass either your credentials or a project, location pair. In the following example, we quickly instantiate the Gemini model as follows:
project ="my-project-id"location ="us-central1"# as an examplemodel =GeminiModel(project=project, location=location)model("Hello there, this is a tesst if you are working?")# Output: "Hello world, I am working!"