Go to file
2023-03-27 13:50:00 +03:00
_includes Change goat counter script to head, so that it's enabled 2023-03-27 13:48:11 +03:00
_layouts Create simple jekyll site 2023-03-25 16:42:55 +02:00
_posts Create simple jekyll site 2023-03-25 16:42:55 +02:00
_sass Set Habot Sans as first font 2023-03-27 13:50:00 +03:00
css Create simple jekyll site 2023-03-25 16:42:55 +02:00
_config.yml update site, content and styling 2023-03-25 22:01:25 +02:00
404.html Create simple jekyll site 2023-03-25 16:42:55 +02:00
about.markdown Create simple jekyll site 2023-03-25 16:42:55 +02:00
docs.md Add spacing and formatting for better rendering, remove emoji that didn't render, update content 2023-03-25 22:20:49 +02:00
favicon.ico update site, content and styling 2023-03-25 22:01:25 +02:00
Gemfile Create simple jekyll site 2023-03-25 16:42:55 +02:00
Gemfile.lock Create simple jekyll site 2023-03-25 16:42:55 +02:00
install.md Add spacing and formatting for better rendering, remove emoji that didn't render, update content 2023-03-25 22:20:49 +02:00
README.md Add spacing and formatting for better rendering, remove emoji that didn't render, update content 2023-03-25 22:20:49 +02:00
robots.txt Create simple jekyll site 2023-03-25 16:42:55 +02:00

layout title permalink
page ChatGPT Shell CLI /

shell

chatGPT-shell-cli

A simple, lightweight shell script to use OpenAI's chatGPT and DALL-E from the terminal without installing python or node.js. The script uses the official ChatGPT model gpt-3.5-turbo with the OpenAI API endpoint /chat/completions. You can also use the new gpt-4 model, if you have access.
The script allows the use of all other OpenAI models with the completions endpoint and the images/generations endpoint for generating images.

Features

Screenshot 2023-01-12 at 13 59 08

Screenshot 2023-01-13 at 16 39 27

Chat mode:

$ chatgpt
Welcome to chatgpt. You can quit with 'exit'.

Enter a prompt:

Chat mode with initial prompt:

$ chatgpt -i "You are Rick, from Rick and Morty. Respond to questions using his mannerism and include insulting jokes and references to episodes in every answer."
Welcome to chatgpt. You can quit with 'exit'.

Enter a prompt:
Explain in simple terms how GPT3 works

chatgpt  Ah, you want me to explain GPT3 in simple terms? Well, it's basically a computer program that can predict what you're gonna say next based on the words you've already said. Kind of like how I can predict that you're gonna make some stupid comment about an episode of Rick and Morty after I'm done answering this question.

Enter a prompt:

Using pipe:

echo "How to view running processes on Ubuntu?" | chatgpt

Using script parameters:

chatgpt -p "What is the regex to match an email address?"

Contributors

Thanks to all the people who used, tested, submitted issues, PRs and proposed changes:

pfr-dev, jordantrizz, se7en-x230, mountaineerbr, oligeo, biaocy, dmd, goosegit11, dilatedpupils, direster, rxaviers, Zeioth