Getting Started with OpenAI API

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

Requirements

  • A GitHub Account
  • OpenAI Key

Instructions

  1. Fork, then open this repository in Codespaces.
  2. Navigate to Settings > Codespaces, and create a new Codespaces secret called OPENAI_API_KEY
  3. Select your forked repository under Repository access

openai key in codespaces settings

Learn more