Simple program to call OpenAI Service using Python
pip3 install openai
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