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: 3 months ago
JSON representation
Simple command line integration to Chat GPT
- Host: GitHub
- URL: https://github.com/mglantz/chatgpt
- Owner: mglantz
- License: gpl-3.0
- Created: 2023-01-11T11:47:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T11:54:00.000Z (about 2 years ago)
- Last Synced: 2024-07-31T20:28:56.849Z (6 months ago)
- Language: Python
- Size: 193 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli-apps - chatgpt - Simple command line integration to ChatGPT. (<a name="ai"></a>AI / ChatGPT)
- awesome-cli-apps-in-a-csv - chatgpt - Simple command line integration to ChatGPT. (<a name="ai"></a>AI / ChatGPT)
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")