ChatGPT Cli

Unofficial command line interface for the use of ChatGPT

Usage

Enter the chat by executing chatgpt. This will open a new chat and generate a .chatgpt_config.json in your home directory.

You need to provide an API Key with chatgpt --api-key <YOUR API KEY> or add it to the .chatgpt_config.json.

Other Options:

-h, --help            show this help message and exit
--model MODEL         The name of the GPT model to use (Default: gpt-3.5-turbo)
--max-tokens MAX_TOKENS
                      The maximum number of tokens to generate in the response (Default: 1024))
--temperature TEMPERATURE
                      The temperature to use for sampling from the GPT model (Default: 0.7))
--api-key API_KEY     The OpenAI API key to use (Default: None)
--system-message SYSTEM_MESSAGE
                      The message added to the Chat before the first message (Default: You are ChatGPT, a large language model trained by OpenAI. Carefully heed the user's instructions.)

Inside the chat you can talk to ChatGPT as usual. But you can also enter some commands.

Commands:

help (?):      Print this message
clear (c):     Clear chat history
exit (^D, ^C): Exit the program
history (h):   Print chat history

Last page update: Wednesday, September 18th 2024, 04:21:35 UTC

Many of the articles on this website are automatically generated from the markdown files in the corresponding repositories. This might lead to some unexpected results, so please let me know if you find any errors!

Some articles are still in German, but I am working on translating them. If you are interested in a specific article, don't hesitate to contact me!

If you want to get in touch, you can send me an email at lukas.schuettler@tum.de.