Below are the required environment variables, to be added to the Azure Portal or in the .env.local
file.
App Setting | Value | Note |
---|---|---|
AZURE_OPENAI_API_KEY |
API keys of your Azure OpenAI resource | |
AZURE_OPENAI_API_INSTANCE_NAME |
the name of your Azure OpenAI resource | |
AZURE_OPENAI_API_DEPLOYMENT_NAME |
The name of your model deployment | |
AZURE_OPENAI_API_VERSION |
2023-03-15-preview |
API version when using gpt chat |
AUTH_GITHUB_ID |
Client ID of your GitHub OAuth application | |
AUTH_GITHUB_SECRET |
Client Secret of your GitHub OAuth application | |
NEXTAUTH_SECRET |
Used to encrypt the NextAuth.js JWT, and to hash email verification tokens. This is set by default as part of the deployment template | |
NEXTAUTH_URL |
Current webs hosting domain name with HTTP or HTTPS. This set by default as part of the deployment template | |
AZURE_COSMOSDB_URI |
URL of the Azure CosmosDB | |
AZURE_COSMOSDB_KEY |
API Key for Azure Cosmos DB | |
AZURE_AD_CLIENT_ID |
The client id specific to the application | |
AZURE_AD_CLIENT_SECRET |
The client secret specific to the application | |
AZURE_AD_TENANT_ID |
The organisation Tenant ID | |
ADMIN_EMAIL_ADDRESS |
Comma separated list of email addresses of the admin users ID | |
Azure Cognitive Search is optional. This is only required for chat over file feature. | ||
AZURE_SEARCH_API_KEY |
API Key of Azure Cognitive search | |
AZURE_SEARCH_NAME |
https://AZURE_SEARCH_NAME.search.windows.net |
The deployment name of your Azure Cognitive Search |
AZURE_SEARCH_INDEX_NAME |
The index name with vector search enabled | |
AZURE_SEARCH_API_VERSION |
2023-07-01-Preview |
API version which supports vector search 2023-07-01-Preview |
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT |
https://REGION.api.cognitive.microsoft.com/ |
Endpoint url of the Azure document intelligence. The REGION is specific to your Azure resource location |
AZURE_DOCUMENT_INTELLIGENCE_KEY |
API keys of your Azure Document intelligence resource |