Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 749 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 749 Bytes

chatgpt-cli

IMPORTANT: Please note that the script is currently under development and needs to be updated to the new OpenAI API.

Easy to use script to send request to the openai chatgpt api.

Getting started

To make it easy for you to get started, here's a list of recommended next steps.

# Install the required python packages
./1-install.sh

# Copy the openai.yaml to your home directory and add your openai api key to the file.
vim openai.yaml

# Define the path to openai.yaml
vim mychatgpt.py

# Start the script
python mychatgpt.py

# Tipp: Create an alias in your .bashrc
alias chat="python mychatgpt.py"

# Start the script just by typing
chat

# Example input
Hello, how can I help you? Write 1 paragraph about Berlin.