Skip to content

Commit 2b53c30

Browse files
authored
Merge pull request #1 from microsoft/main
rebase with master azurechat branch
2 parents 0d19294 + f53e525 commit 2b53c30

File tree

19 files changed

+97
-315
lines changed

19 files changed

+97
-315
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ yarn-error.log*
2626

2727
# local env files
2828
.env*.local
29+
.env
2930

3031
# typescript
3132
*.tsbuildinfo

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Unleash the Power of Azure Open AI
1+
# Unleash the Power of Azure OpenAI
22

33
1. [Introduction](#introduction)
44
1. [Solution Overview](/docs/1-introduction.md)
@@ -14,11 +14,11 @@
1414

1515
# Introduction
1616

17-
_Azure Chat Solution Accelerator powered by Azure Open AI Service_
17+
_Azure Chat Solution Accelerator powered by Azure OpenAI Service_
1818

1919
![](/docs/images/intro.png)
2020

21-
_Azure Chat Solution Accelerator powered by Azure Open AI Service_ is a solution accelerator that allows organisations to deploy a private chat tenant in their Azure Subscription, with a familiar user experience and the added capabilities of chatting over your data and files.
21+
_Azure Chat Solution Accelerator powered by Azure OpenAI Service_ is a solution accelerator that allows organisations to deploy a private chat tenant in their Azure Subscription, with a familiar user experience and the added capabilities of chatting over your data and files.
2222

2323
Benefits are:
2424

docs/8-extensions.md

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ As an example you can create an extension that calls Bing Search API to search f
4747

4848
In the example below only the `query` is required as Bing does not require a body parameter.
4949

50+
> [!NOTE]
51+
> As header values specified for an extension often contain secrets (e.g. API keys) Azure Chat stores those values securely in Azure Key Vault. If you are deploying the solution to Azure using azd or the bicep templates the required Key Vault role assignment is automatically created. If you are running the solution locally you will need to manually add the "Key Vault Secrets Officer" role to identy that is running the solution (wh8ch will typically be the user logged into the Azure CLI)
52+
5053
# Bing Search Extension
5154

5255
1. **Name**: `Bing Search`

docs/migration.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# Migration
1+
# Migration 2.1
2+
3+
The new changes merges GPT-4 and GPT-4 Vision models into a single GPT-4o model. This allows multi-modal inputs and generates text as an output. The new model is available within the following [regions](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-and-gpt-4-turbo-preview-model-availability).
4+
5+
# Migration 2.0
26

37
The following changes and services are required to migrate from the old version to the new version.
48

59
Refer the `.env.example` file for the latest environment variable changes.
610

711
If you previously had Azure Chat running and have pulled the v2 version you will need at minimum to make the following changes:
812

9-
* Change the "OPENAI_API_KEY" environment setting to "AZURE_OPENAI_API_KEY"
10-
* Add an additional container to your Cosmos DB database called "config" with a partition key of "/userId"
11-
* Add the "AZURE_KEY_VAULT_NAME" environment setting with the name of your Azure Key Vault
12-
* Add the "New Azure Services" settings below if you wish to use these features
13+
- Change the "OPENAI_API_KEY" environment setting to "AZURE_OPENAI_API_KEY"
14+
- Add an additional container to your Cosmos DB database called "config" with a partition key of "/userId"
15+
- Add the "AZURE_KEY_VAULT_NAME" environment setting with the name of your Azure Key Vault
16+
- Add the "New Azure Services" settings below if you wish to use these features
1317

1418
## New Azure Services
1519

infra/main.bicep

+9-26
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ param name string
99
@description('Primary location for all resources')
1010
param location string
1111

12-
// azure open ai -- only regions supporting gpt-35-turbo v1106
12+
// azure open ai -- regions currently support gpt-4o global-standard
1313
@description('Location for the OpenAI resource group')
14-
@allowed(['australiaeast', 'canadaeast', 'francecentral', 'southindia', 'uksouth', 'swedencentral', 'westus'])
14+
@allowed(['australiaeast', 'brazilsouth', 'canadaeast', 'eastus', 'eastus2', 'francecentral', 'germanywestcentral', 'japaneast', 'koreacentral', 'northcentralus', 'norwayeast', 'polandcentral', 'spaincentral', 'southafricanorth', 'southcentralus', 'southindia', 'swedencentral', 'switzerlandnorth', 'uksouth', 'westeurope', 'westus', 'westus3'])
1515
@metadata({
1616
azd: {
1717
type: 'location'
@@ -20,37 +20,26 @@ param location string
2020
param openAILocation string
2121

2222
param openAISku string = 'S0'
23-
param openAIApiVersion string = '2023-12-01-preview'
23+
param openAIApiVersion string ='2024-08-01-preview'
2424

25-
param chatGptDeploymentCapacity int = 120
26-
param chatGptDeploymentName string = 'chat-gpt-35-turbo'
27-
param chatGptModelName string = 'gpt-35-turbo'
28-
param chatGptModelVersion string = '1106'
25+
param chatGptDeploymentCapacity int = 30
26+
param chatGptDeploymentName string = 'gpt-4o'
27+
param chatGptModelName string = 'gpt-4o'
28+
param chatGptModelVersion string = '2024-05-13'
2929
param embeddingDeploymentName string = 'embedding'
3030
param embeddingDeploymentCapacity int = 120
3131
param embeddingModelName string = 'text-embedding-ada-002'
3232

33-
// DALL-E v3 only supported in Sweden Central for now
33+
// DALL-E v3 only supported in limited regions for now
3434
@description('Location for the OpenAI DALL-E 3 instance resource group')
35-
@allowed(['swedencentral'])
35+
@allowed(['swedencentral', 'eastus', 'australiaeast'])
3636
param dalleLocation string
3737

3838
param dalleDeploymentCapacity int = 1
3939
param dalleDeploymentName string = 'dall-e-3'
4040
param dalleModelName string = 'dall-e-3'
4141
param dalleApiVersion string = '2023-12-01-preview'
4242

43-
// DALL-E v3 only supported in Sweden Central for now
44-
@description('Location for the GPT vision instance resource')
45-
@allowed(['swedencentral','westus',])
46-
param gptvisionLocation string
47-
48-
param gptvisionDeploymentCapacity int = 1
49-
param gptvisionDeploymentName string = 'gpt-4-vision'
50-
param gptvisionModelName string = 'gpt-4'
51-
param gptvisionApiVersion string = '2023-12-01-preview'
52-
param gptvisionModelVersion string = 'vision-preview'
53-
5443
param formRecognizerSkuName string = 'S0'
5544
param searchServiceIndexName string = 'azure-chat'
5645
param searchServiceSkuName string = 'standard'
@@ -93,12 +82,6 @@ module resources 'resources.bicep' = {
9382
dalleDeploymentName: dalleDeploymentName
9483
dalleModelName: dalleModelName
9584
dalleApiVersion: dalleApiVersion
96-
gptvisionLocation: gptvisionLocation
97-
gptvisionApiVersion: gptvisionApiVersion
98-
gptvisionDeploymentCapacity: gptvisionDeploymentCapacity
99-
gptvisionDeploymentName: gptvisionDeploymentName
100-
gptvisionModelName: gptvisionModelName
101-
gptvisionModelVersion: gptvisionModelVersion
10285
formRecognizerSkuName: formRecognizerSkuName
10386
searchServiceIndexName: searchServiceIndexName
10487
searchServiceSkuName: searchServiceSkuName

0 commit comments

Comments
 (0)