Open nopeless opened 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
@kardolus environment variables are hard to keep in closures especially in powershell they don't have something like env
to keep them temporarily :/
@nopeless ahh gotcha. I didn't know that about powershell. I can add the --value
flags. May take me a week or two.
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
--set-<value>
writes to file. I wouldn't want that.