kardolus / chatgpt-cli

ChatGPT CLI is an advanced command-line interface for ChatGPT models via OpenAI and Azure, offering streaming, query mode, and history tracking for seamless, context-aware conversations. Ideal for both users and developers, it provides advanced configuration and easy setup options to ensure a tailored conversational experience with the GPT model.
MIT License
404 stars 28 forks source link

`--set-<value>` should have a `--value` counter part for session based options #36

Open nopeless opened 3 months ago

nopeless commented 3 months ago

--set-<value> writes to file. I wouldn't want that.

kardolus commented 3 months ago

@nopeless flags would be one way of doing that, however you can already use the environment variables. Every configuration option has an associated environment variable, eg:

OPENAI_MODEL=gpt-3.5-turbo chatgpt what is the capital of Belgium?

or

OPENAI_ROLE='you extract wisdom' cat README.md | chatgpt summarize
nopeless commented 3 months ago

@kardolus environment variables are hard to keep in closures especially in powershell they don't have something like env to keep them temporarily :/

kardolus commented 3 months ago

@nopeless ahh gotcha. I didn't know that about powershell. I can add the --value flags. May take me a week or two.

nopeless commented 3 months ago

btw by --value i was thinking about --max-tokens for example. i hope it isn't that confusing

e.g.

chatgpt-cli --role "You are developer" -i