Skip to content

Commit d2df9d3

Browse files
committed
env changes for endpoint and auth
1 parent a8ec0f3 commit d2df9d3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

infra/main.bicep

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ param resourceSize {
5555
maxReplicas: 1
5656
}
5757
}
58-
param capacity int = 10
58+
param capacity int = 40
5959

6060

6161
var modelVersion = '2024-08-06'
@@ -71,7 +71,7 @@ var backendDockerImageURL = '${resgistryName}.azurecr.io/macaebackend:${appVersi
7171
var frontendDockerImageURL = '${resgistryName}.azurecr.io/macaefrontend:${appVersion}'
7272

7373
var uniqueNameFormat = '${prefix}-{0}-${uniqueString(resourceGroup().id, prefix)}'
74-
var aoaiApiVersion = '2024-08-01-preview'
74+
var aoaiApiVersion = '2025-01-01-preview'
7575

7676
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
7777
name: format(uniqueNameFormat, 'logs')
@@ -332,9 +332,13 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
332332
name: 'COSMOSDB_CONTAINER'
333333
value: cosmos::autogenDb::memoryContainer.name
334334
}
335-
{
336-
name: 'AZURE_OPENAI_ENDPOINT'
337-
value: aiServices.properties.endpoint
335+
{
336+
name: 'AZURE_OPENAI_ENDPOINT'
337+
value: replace(aiServices.properties.endpoint, 'cognitiveservices.azure.com', 'openai.azure.com')
338+
}
339+
{
340+
name: 'AUTH_ENABLED'
341+
value: false
338342
}
339343
{
340344
name: 'AZURE_OPENAI_MODEL_NAME'

0 commit comments

Comments
 (0)