Skip to content

rishabkumar7/python-chatgpt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatgpt_cli

A simple wrapper for ChatGPT, allows to use OPENAI ChatGPT in your CLI.

Requirements

This package requires python 3. And a human to use it.

Installing

To install this CLI tool you can run the below command

pip install -i https://test.pypi.org/simple/ python-chatgpt-cli

The above commands would install the package globally and chatgpt_cli will be available on your system.

How to use

Make sure to get an API key for OpenAI, you can get that from - https://openai.com/api

Set an environment variable OPENAI_API_KEY = <YOUR OPENAI API KEY>

You are good to use the chatgpt_cli command:

chatgpt_cli
Ask ChatGPT 🤖 
Who is Ronaldo?                                                 

Ronaldo is a Portuguese professional soccer player who currently plays for the Italian Serie A club Juventus.  
He is widely considered one of the greatest soccer players of all time. Ronaldo has won five Ballon dOr awards, 
the most for a European player, and is the first player to win four European Golden Shoes. He has also won 29 
trophies in his career, including five league titles, four UEFA Champions League titles, and one UEFA European
Championship.

Feedback

Please feel free to leave feedback in issues/PRs.

LICENSE

Licensed under MIT License.