Welcome to the Introduction to OpenAI Developer Platform workshop! This repository contains starter code for various OpenAI API implementations.
- Get your OpenAI API key here
- Check out the workshop slides here
- Clone this repository to get started with the demo code
This repository includes several demo files to help you get started with different OpenAI APIs:
gpt-demo.py
: Starter code for GPT-4o implementationdalle-demo.py
: Example implementation of DALL-E 3 image generationtts-whisper-demos.py
: Text-to-Speech demonstration using OpenAI's TTS, then transcribed back into text!embeddings-demo.py
: Vector embeddings example using OpenAI's embedding models
- Python 3.7+
- OpenAI API key
openai
Python package
# Clone the repository
git clone [repository-url]
# Install required packages
pip install openai
- Add your API key to a .env file:
OPENAI_API_KEY='your-api-key'
- Run any demo file:
python gpt-demo.py
This workshop was presented at HackUMass 2024. For questions or support, please reach out to Niko Lorantos.