Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 519 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 519 Bytes

openai-chatgpt-python

Simple program to call OpenAI Service using Python

Install OpenAI Service Library

pip3 install openai

Execute the python program using below

export API_KEY='sk-XXXXXXXXX'
export MODEL='gpt-3.5-turbo'
export ROLE='user'

python3 play-openai.py "What model of gpt are you using for this chat conversion"

The article for the setup can be found here