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
513 stars 25 forks source link

Allow standard-ish environment variables for OpenAI. #6

Closed dsully closed 11 months ago

dsully commented 11 months ago

Many applications require these to be set, no need in creating more environment variables just for Oatmeal.

dsully commented 11 months ago

Clap returns Self, so it should work.. and I tested it locally. What error are you seeing?

dustinblackman commented 11 months ago

Sorry, I made a mistake. As I went to write tests for this, I see that only the last .env() call in the chain is used, the others are ignored. I'll likely have to do something a little more custom. I've opened https://github.com/dustinblackman/oatmeal/issues/8 to follow up.