dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
487 stars 23 forks source link

Add common environment variables #8

Closed dustinblackman closed 7 months ago

dustinblackman commented 9 months ago

Overview

Following up on https://github.com/dustinblackman/oatmeal/pull/6, add common environment variables shared across other apps for OpenAI such as:

suhr commented 8 months ago

It would be nice to support OLLAMA_URL as well.

dustinblackman commented 7 months ago

While I see the appeal of this, Oatmeal's environment variable configs are tied to clap, which only allows one environment variable. Decoupling that and having to mange several variants of envs sounds tedious. The following I'd say is good enough.

export OPENAI_KEY=keysecretkey
export OATMEAL_OPENAI_TOKEN=$OPENAI_KEY

Marking as wont fix.