Make sure to set the OPENAI_API_KEY environment variable to your OpenAI API key (or put it in the ~/.gptrc file as described below). Type q or Ctrl-D

GitHub - kharvd/gpt-cli: Command-line interface for ChatGPT

submited by
Style Pass
2023-03-17 04:00:06

Make sure to set the OPENAI_API_KEY environment variable to your OpenAI API key (or put it in the ~/.gptrc file as described below).

Type q or Ctrl-D to exit, c or Ctrl-C to clear the conversation, r or Ctrl-R to re-generate the last response. To enter multi-line mode, enter a backslash \ followed by a new line. Exit the multi-line mode by pressing ESC and then Enter.

You can override the model parameters using --model, --temperature and --top_p arguments at the end of your prompt. For example:

You can specify the default assistant to use by setting the default_assistant field. If you don't specify it, the default assistant is general. You can also specify the model, temperature and top_p to use for the assistant. If you don't specify them, the default values are used. These parameters can also be overridden by the command-line arguments.

Leave a Comment