Description
Is your feature request related to a problem? Please describe.
everytime I have to run localai, I have to pass it several flags like the listenAddress, the models-path and so on. These rarely changes and I would like to just record them so that I can just type localai
.
Some (all?) of them can be passed via environment variables but I dont like that, it pollutes the env (especially as some variables are not even prefixed with LOCALAI, is more implicit. Having a config.yaml I could edit would be much better. I just found out about
--localai-config-dir` but it doesn't seem to be able to load the models-path for instance ? I had a look at the code and I think localai just watches that folder for api keys and tokens ?
Describe the solution you'd like
localai loads its flags/configuration from a configuration file (e.g. config.yaml). Ideally localai would look into $XDG_CONFIG_HOME/localai
(e.g. ~/.config/localai/
)
Describe alternatives you've considered
Export all the environment variables.
One could also create a wrapper or alias but because I intend to hack on localai, that might not be easy either
Additional context
I also find the --help for --localai-config-dir
not descriptive enough of what it does