Prerequisites
This tutorial assumes you have an Azure account and have installed the Azure CLI app. Follow this tutorial to install the Azure CLI app- here Your Azure account must have a Cognitive Services Contributor role assigned in order for you to agree to the responsible AI terms and create a resource- Learn MoreProvision OpenAI resources on Azure
This tutorial largely follows the steps outlined here- Login to Azure
- Create a resource group for Mayil
- Create a Congnitiveservices account specific to Mayil
- Deploy required models for Mayil
Configuring Mayil’s backend API
Various details generated during the setup process above will need to be copied and provided to Mayil’s backend API as configuration details. Update the JSON block below with all the procured information.deployment
- Enter the deployment-name used while creating the service in Azureendpoint
- A link to the resource group we created -https://<resource_group_name>.openai.azure.com/
deployment_type
is always “azure_oai” for Azure OpenAI endpointskey
- AN identifier used by Mayil. Can be one of [“GPT4O”, “EMBEDDING”, “GPT3”]token
- Procure a bearer token by running this command-
ENDPOINTS
as outlined in the Configuration page.