Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/mglantz/chatgpt

Simple command line integration to Chat GPT
https://github.com/mglantz/chatgpt

Last synced: about 2 months ago
JSON representation

Simple command line integration to Chat GPT

Lists

README

        

# chatgpt
Simple command line integration to Chat GPT, showcasing how you can use AI in day 2 operational tasks.

## Installation

1. Create a API key at [https://www.openai.com](https://www.openai.com)

![Creation of API key](chatgpt.png?raw=true "Title")

2. Clone this repository or copy the gpt.py script to your computer.
3. Export the API key as such:
```
export OPENAI_API_KEY=sk-thekeythatyoucreated
```
4. Install python dependency
```
pip3 install openai
```

5. Execute the gpt.py script.

![Example of usage](chatgptusage.png?raw=true "Title")

![Example of usage](chatgptusage2.png?raw=true "Title")