Examples have moved to the OpenAI Cookbook
Looking for code examples? Visit the OpenAI Cookbook, which shares examples of how to use the OpenAI Python library to accomplish common tasks.
Prior to July 2022, code examples were hosted in this examples folder; going forward, code examples will be hosted in the OpenAI Cookbook.
This separation will help keep the OpenAI Python library simple and small, without extra files or dependencies.