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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reading api key from a config file

thisismygitrepo opened this issue · comments

Like many other tools, can we please have this one reading api key from the config file? as opposed from env vars or explicity passing.

You can pass api_key in a model definition in the config file. Something like this should work:

[[models]]
id = "my-gpt-3.5-turbo"
name = "gpt-3.5-turbo"
display_name = "My GPT 3.5 Turbo"
api_key = "something"