Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemini 1.0 Pro not working #63

Open
kittupriyatham opened this issue May 29, 2024 · 1 comment
Open

Gemini 1.0 Pro not working #63

kittupriyatham opened this issue May 29, 2024 · 1 comment

Comments

@kittupriyatham
Copy link

I have set up the project as described in the readme document.
Although, it is not clear where to set the environment variables. (I have set it on both my PC and the config.toml file.)

image

Then I got this issue, as I called Elia about the Gemini 1.0 pro model.
image

Although I have installed the required and mentioned libraries on my PC, I am getting the below error repeatedly.
image

I am not understanding where to install the mentioned package.

@eavc
Copy link

eavc commented Jun 16, 2024

@kittupriyatham - There's two issues here:

  1. The application expects your API keys to be saved as environment variables by default (although you can also set API keys in the config.toml file as per the documentation). See OpenAI's documentation on how to set up API keys as environment variables.
  2. You are trying to access the Gemini models through Google's Vertex AI, which is the enterprise solution and which typically requires a default project and corresponding service account to be set up, and a credentials file to be set up in your local development environment. For a simpler solution, I suggest using Google AI Studio to set up your API key and set it as an environment variable as discussed in point 1 above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants