Skip to content

Commit a1aed38

Browse files
variable changes and custom domain
1 parent 0b11830 commit a1aed38

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
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=

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
{

0 commit comments

Comments
 (0)