aandrew-me / tgpt

AI Chatbots in terminal without needing API keys
GNU General Public License v3.0
2.04k stars 171 forks source link

Specify defaults via environmment variables #245

Closed schnz closed 7 months ago

schnz commented 7 months ago

If accepted, tpgt would read some default values via OS environment variables. This makes the usage more convenient, especially when working with other tools that commonly support these environment variables as well.

aandrew-me commented 7 months ago

Nice! Please resolve the conflicts and then I can merge

schnz commented 7 months ago

It was up-to-date all the time :/

johnd0e commented 7 months ago

There is also --url parameter available since v2.7.3. So it makes sense to support OPENAI_BASE_URL env variable as well.

schnz commented 7 months ago

True. Since this is merged already, I'd encourage you to open a new PR for this.