Skip to content

Commit 6c83bae

Browse files
Merge pull request #275 from microsoft/more-bicep-changes
fix: A bug fix - More bicep changes
2 parents 0ba8c99 + 16366e6 commit 6c83bae

File tree

5 files changed

+10
-80
lines changed

5 files changed

+10
-80
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ AZURE_OPENAI_TEMPLATE_SYSTEM_MESSAGE="Generate a template for a document given a
2121
AZURE_OPENAI_GENERATE_SECTION_CONTENT_PROMPT="Help the user generate content for a section in a document. The user has provided a section title and a brief description of the section. The user would like you to provide an initial draft for the content in the section. Must be less than 2000 characters. Only include the section content, not the title. Do not use markdown syntax. Whenever possible, use ingested documents to help generate the section content."
2222
AZURE_OPENAI_TITLE_PROMPT="Summarize the conversation so far into a 4-word or less title. Do not use any quotation marks or punctuation. Respond with a json object in the format {{\"title\": string}}. Do not include any other commentary or description."
2323
AZURE_OPENAI_PREVIEW_API_VERSION=2024-05-01-preview
24+
AZURE_OPENAI_API_VERSION=2024-05-01-preview
2425
AZURE_OPENAI_STREAM=True
2526
AZURE_OPENAI_ENDPOINT=
2627
AZURE_OPENAI_EMBEDDING_NAME=

README_azd.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

infra/deploy_ai_foundry.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ resource aiServices 'Microsoft.CognitiveServices/accounts@2021-10-01' = {
112112
}
113113
kind: 'AIServices'
114114
properties: {
115+
customSubDomainName: aiServicesName
115116
apiProperties: {
116117
statisticsEnabled: false
117118
}

infra/deploy_app_service.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ resource Website 'Microsoft.Web/sites@2020-06-01' = {
101101
value: azureOpenAIApiVersion
102102
}
103103
{
104-
name: 'AZURE_OPENAI_DEPLOYMENT_NAME'
104+
name: 'AZURE_OPENAI_MODEL'
105105
value: AzureOpenAIModel
106106
}
107107
{
108108
name: 'AZURE_OPENAI_ENDPOINT'
109109
value: AzureOpenAIEndpoint
110110
}
111111
{
112-
name: 'AZURE_OPENAI_API_KEY'
112+
name: 'AZURE_OPENAI_KEY'
113113
value: AzureOpenAIKey
114114
}
115115
{

infra/main.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "8931514270414510226"
8+
"templateHash": "3126173092886008904"
99
}
1010
},
1111
"parameters": {
@@ -380,7 +380,7 @@
380380
"_generator": {
381381
"name": "bicep",
382382
"version": "0.33.93.31351",
383-
"templateHash": "6139170564292952532"
383+
"templateHash": "14703493169474623961"
384384
}
385385
},
386386
"parameters": {
@@ -563,6 +563,7 @@
563563
},
564564
"kind": "AIServices",
565565
"properties": {
566+
"customSubDomainName": "[variables('aiServicesName')]",
566567
"apiProperties": {
567568
"statisticsEnabled": false
568569
}
@@ -1181,7 +1182,7 @@
11811182
"_generator": {
11821183
"name": "bicep",
11831184
"version": "0.33.93.31351",
1184-
"templateHash": "13134513664140996267"
1185+
"templateHash": "10772344907596853045"
11851186
}
11861187
},
11871188
"parameters": {
@@ -1361,15 +1362,15 @@
13611362
"value": "[parameters('azureOpenAIApiVersion')]"
13621363
},
13631364
{
1364-
"name": "AZURE_OPENAI_DEPLOYMENT_NAME",
1365+
"name": "AZURE_OPENAI_MODEL",
13651366
"value": "[parameters('AzureOpenAIModel')]"
13661367
},
13671368
{
13681369
"name": "AZURE_OPENAI_ENDPOINT",
13691370
"value": "[parameters('AzureOpenAIEndpoint')]"
13701371
},
13711372
{
1372-
"name": "AZURE_OPENAI_API_KEY",
1373+
"name": "AZURE_OPENAI_KEY",
13731374
"value": "[parameters('AzureOpenAIKey')]"
13741375
},
13751376
{

0 commit comments

Comments
 (0)