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.86k stars 115 forks source link

[Request] Authenticate Gemini via token #48

Closed paw-lu closed 5 months ago

paw-lu commented 5 months ago

Right now, based on instructions it seems like Gemini authentication relies on using some google cloud authentication process. Would it be possible to just use the Gemini API token like some other apps use?

darrenburns commented 5 months ago

If you set the GEMINI_API_KEY environment variable, it should work.

paw-lu commented 5 months ago

You're totally right—closing! (Curious—grepping through it seems you're not parsing the env variables yourself. Are they passed through another way?)

(btw really good interface here)

darrenburns commented 5 months ago

Most of the LLM stuff is handled in external libraries, and the env vars are quite standardised, so there's no parsing required - those libraries look for them themselves.

Thank you!