From 4986a3f134e9569ff4b3a99009b3e794b3954e88 Mon Sep 17 00:00:00 2001 From: Sanjinso Date: Tue, 28 Nov 2023 15:29:45 +0100 Subject: [PATCH] chatgpt: add page (#11597) * chatgpt: add page * chatgpt: fix formating * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Removed trailing whitespace * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/chatgpt.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/linux/chatgpt.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/chatgpt.md diff --git a/pages/linux/chatgpt.md b/pages/linux/chatgpt.md new file mode 100644 index 0000000000..fbd45e29ea --- /dev/null +++ b/pages/linux/chatgpt.md @@ -0,0 +1,28 @@ +# chatgpt + +> Shell script to use OpenAI's ChatGPT and DALL-E from the terminal. +> More information: . + +- Start in chat mode: + +`chatgpt` + +- Give a [p]rompt to answer to: + +`chatgpt --prompt "{{What is the regex to match an email address?}}"` + +- Start in chat mode using a specific [m]odel (default is `gpt-3.5-turbo`): + +`chatgpt --model {{gpt-4}}` + +- Start in chat mode with an [i]nitial prompt: + +`chatgpt --init-prompt "{{You are Rick, from Rick and Morty. Respond to questions using his mannerism and include insulting jokes.}}"` + +- Pipe the result of a command to `chatgpt` as a prompt: + +`echo "{{How to view running processes on Ubuntu?}}" | chatgpt` + +- Generate an image using DALL-E: + +`chatgpt --prompt "{{image: A white cat}}"`