Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.91 KB

Readme.md

File metadata and controls

62 lines (45 loc) · 1.91 KB

shortgpt

shortgpt is an AI assistant console app for Windows/Linux/MacOS we can run it as command . It answers questions with less than 50 words,use GPT 3/4 from the terminal.

shortgot

Features

  • Ask shortgpt for instant and concise answers
  • Add shortgpt to PATH environment and use it as command
  • You can use any one of the GPT model (gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301)
  • Default model is gpt-3.5-turbo
  • Cost effective
  • Use -l to enable long text mode

Screenshots

Windows

shortgot windows

Linux

shortgot linux

Usage and Options

Usage: shortgpt.exe [OPTIONS] <question>

Arguments:
  <question>

Options:
  -m, --model <model>              GPT model (gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301) [default: gpt-3.5-turbo]
  -t, --temperature <temperature>  Sampling temperature to use, between 0 and 2 [default: 0.7]
  -l, --long                       Turn on long text mode (50 words output limit off)
  -h, --help                       Print help
  -V, --version                    Print version

Set OPENAI_API_KEY

To set OpenAI API key run the following command.

Windows

To set OPENAI_API_KEY environment variable for the current cmd shell set OPENAI_API_KEY=<yourkey>

To set OPENAI_API_KEY environment variable permanently

setx OPENAI_API_KEY “<yourkey>”

Linux / MacOS

export OPENAI_API_KEY=yourkey

Or set it permanently on .bashrc or .zshrc file

echo "export OPENAI_API_KEY='yourkey'" >> ~/.zshrc
source ~/.zshrc
echo $OPENAI_API_KEY

Development

To run in the development mode run the following command :

cargo run -- "hello"