This repository is a collection of Jupyter Notebooks adapted from the Azure OpenAI Samples Repository that include notebooks that access OpenAI and Azure OpenAI services.
The Python OpenAI API works with Azure OpenAI Models as well, with a few modifications. Learn more about the differences here: How to switch between OpenAI and Azure OpenAI endpoints with Python
- A GitHub Account
- OpenAI Key
- Fork, then open this repository in Codespaces.
- Navigate to Settings > Codespaces, and create a new Codespaces secret called
OPENAI_API_KEY
- Select your forked repository under
Repository access