This repository is a compilation of useful Azure OpenAI Service resources and code samples to help you get started and accelerate your technology adoption journey.
- Azure Account - If you're new to Azure, get an Azure account for free and you'll get some free Azure credits to get started.
- Azure subscription with access enabled for the Azure OpenAI Service - For more details, see the Azure OpenAI Service documentation on how to get access.
- Azure Open AI resource - For these samples, you'll need to deploy models like GPT-3.5 Turbo, GPT 4, DALL-E, and Whisper. See the Azure OpenAI Service documentation for more details on deploying models and model availability.
- In this repo we used GPT-4
- Clone the repo
git clone https://github.com/yanivvak/azure-openai-workshop.git
cd azure-openai-workshop
- Set up a virtual environment (Preferred)
python -m venv workshop
Once you’ve created a virtual environment, you may activate it.
On Windows, run:
workshop\Scripts\activate
On Unix or MacOS, run:
source workshop/bin/activate
To deactivate :
deactivate
More information about virtual environments can be found here
- install requirements
pip install -r requirements.txt
- Update credentials
You can setup .env file where you store key information for Azure services, check .env.sample for example.
- Update the file with your credentials
- Save it as .env