I found this guide/example from OpenAI which was pretty clear:
https://github.com/openai/openai-cookbook/blob/main/examples...