From fd267f07021c89cf83602bcf4498e36231bd88de Mon Sep 17 00:00:00 2001 From: Ahmed Sufyan <45531461+sufyandaredevil@users.noreply.github.com> Date: Sat, 22 Apr 2023 17:25:42 +0530 Subject: [PATCH] sgpt: add page (#10095) Co-authored-by: K.B.Dharun Krishna --- pages/common/sgpt.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/sgpt.md diff --git a/pages/common/sgpt.md b/pages/common/sgpt.md new file mode 100644 index 000000000..8c7acf36e --- /dev/null +++ b/pages/common/sgpt.md @@ -0,0 +1,28 @@ +# sgpt + +> Command-line productivity tool powered by OpenAI's GPT models. +> More information: . + +- Use it as a search engine, asking for the mass of the sun: + +`sgpt "{{mass of the sun}}"` + +- Execute Shell commands, and apply `chmod 444` to all files in the current directory: + +`sgpt --shell "{{make all files in current directory read only}}"` + +- Generate code, solving classic fizz buzz problem: + +`sgpt --code "{{solve fizz buzz problem using Python}}"` + +- Start a chat session with a unique session name: + +`sgpt --chat {{session_name}} "{{please remember my favorite number: 4}}"` + +- Start a `REPL` (Read–eval–print loop) session: + +`sgpt --repl {{command}}` + +- Display help: + +`sgpt --help`