Skip to content

xxmlud/gpt-chatbot-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatgpt-cli

It's a very minimal cli prompt, where you can chat and keeping the conversation session memorable by chatgpt.

Install

Assuming you created a set env variable with key named OPENAI_API_KEY. If you don't have a api key visit here and generate one.

$ pip3 install gpt-chatbot-cli

Usage

$ gpt-chatbot-cli --help

Usage: gpt-chatbot-cli [OPTIONS]

  A CLI for OpenAI's GPT-3 API. Chat with a bot, ask questions, correct
  grammar, summarize text, and more.

  Examples:
      gpt-chatbot-cli
      gpt-chatbot-cli --api_key=YOUR_API_KEY
      gpt-chatbot-cli --api_key=YOUR_API_KEY --model=text-davinci-003 --temperature=0.7

Options:
  --api_key TEXT       Openai API key. If not provided, will prompt for it or
                       use the environment variable OPENAI_API_KEY.
  --model TEXT         Model to use for text generation | (default:
                       gpt-3.5-turbo)
  --temperature FLOAT  Temperature for text generation | (default: 0.9)
  -h, --help           Show this message and exit.

Demo

asciicast

About

chatgpt-cli without any bloats.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.9%
  • Shell 2.1%