mglantz / chatgpt

Simple command line integration to Chat GPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Creation of API key

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

Example of usage

Example of usage

About

Simple command line integration to Chat GPT

License:GNU General Public License v3.0


Languages

Language:Python 100.0%