darrenburns / elia

A snappy, keyboard-centric terminal user interface for interacting with large language models. Chat with ChatGPT, Claude, Llama 3, Phi 3, Mistral, Gemma and more.
Apache License 2.0
1.59k stars 106 forks source link

Gemini 1.0 Pro not working #63

Open kittupriyatham opened 1 month ago

kittupriyatham commented 1 month ago

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 commented 2 weeks ago

@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.