Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rupeshs/shortgpt
Ask shortgpt for instant and concise answers
https://github.com/rupeshs/shortgpt
artificial-intelligence assistant chatgpt console-application gpt gpt3 gpt4 linux llm openai windows
Last synced: 2 months ago
JSON representation
Ask shortgpt for instant and concise answers
- Host: GitHub
- URL: https://github.com/rupeshs/shortgpt
- Owner: rupeshs
- License: mit
- Created: 2023-05-06T14:50:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T15:46:33.000Z (over 1 year ago)
- Last Synced: 2024-10-31T13:34:07.958Z (3 months ago)
- Topics: artificial-intelligence, assistant, chatgpt, console-application, gpt, gpt3, gpt4, linux, llm, openai, windows
- Language: Rust
- Homepage:
- Size: 137 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://raw.githubusercontent.com/rupeshs/shortgpt/main/images/shortgpt.png)
## 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](https://raw.githubusercontent.com/rupeshs/shortgpt/main/images/shortgpt-win.PNG)
#### Linux![shortgot linux](https://raw.githubusercontent.com/rupeshs/shortgpt/main/images/shortgpt_demo.PNG)
## Usage and Options
```
Usage: shortgpt.exe [OPTIONS]Arguments:
Options:
-m, --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 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=`To set OPENAI_API_KEY environment variable permanently
`setx OPENAI_API_KEY “”`
## 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"`