Skip to content

Commit f067078

Browse files
author
Harmanpreet Kaur
committed
Remove AZURE_OPENAI_ENDPOINT references from Bicep files and Python config
1 parent d5c511c commit f067078

4 files changed

Lines changed: 2 additions & 12 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,7 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.19.0' = {
887887
name: 'AZURE_BLOB_CONTAINER_NAME'
888888
value: appStorageContainerName
889889
}
890-
{
891-
name: 'AZURE_OPENAI_ENDPOINT'
892-
value: 'https://${aiServices.outputs.name}.openai.azure.com/'
893-
}
890+
894891
{
895892
name: 'MIGRATOR_AGENT_MODEL_DEPLOY'
896893
value: modelDeployment.name
@@ -1072,7 +1069,6 @@ output WEB_APP_URL string = 'https://${containerAppFrontend.outputs.fqdn}'
10721069
output COSMOSDB_ENDPOINT string = cosmosDb.outputs.endpoint
10731070
output AZURE_BLOB_ACCOUNT_NAME string = storageAccount.outputs.name
10741071
output AZURE_BLOB_ENDPOINT string = 'https://${storageAccount.outputs.name}.blob.core.windows.net/'
1075-
output AZURE_OPENAI_ENDPOINT string = 'https://${aiServices.outputs.name}.openai.azure.com/'
10761072
output AZURE_AI_AGENT_PROJECT_NAME string = aiServices.outputs.aiProjectInfo.name
10771073
output AZURE_AI_AGENT_ENDPOINT string = aiServices.outputs.aiProjectInfo.apiEndpoint
10781074
output AZURE_AI_AGENT_PROJECT_CONNECTION_STRING string = aiServices.outputs.aiProjectInfo.apiEndpoint

infra/main_custom.bicep

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,10 +921,7 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.19.0' = {
921921
name: 'AZURE_BLOB_CONTAINER_NAME'
922922
value: appStorageContainerName
923923
}
924-
{
925-
name: 'AZURE_OPENAI_ENDPOINT'
926-
value: 'https://${aiServices.outputs.name}.openai.azure.com/'
927-
}
924+
928925
{
929926
name: 'MIGRATOR_AGENT_MODEL_DEPLOY'
930927
value: modelDeployment.name
@@ -1113,7 +1110,6 @@ output COSMOSDB_ENDPOINT string = cosmosDb.outputs.endpoint
11131110
output AZURE_BLOB_ACCOUNT_NAME string = storageAccount.outputs.name
11141111
output AZURE_BLOB_ENDPOINT string = 'https://${storageAccount.outputs.name}.blob.core.windows.net/'
11151112
output AZURE_CONTAINER_REGISTRY_ENDPOINT string = containerRegistry.properties.loginServer
1116-
output AZURE_OPENAI_ENDPOINT string = 'https://${aiServices.outputs.name}.openai.azure.com/'
11171113
output AZURE_AI_AGENT_PROJECT_NAME string = aiServices.outputs.aiProjectInfo.name
11181114
output AZURE_AI_AGENT_ENDPOINT string = aiServices.outputs.aiProjectInfo.apiEndpoint
11191115
output AZURE_AI_AGENT_RESOURCE_GROUP_NAME string = resourceGroup().name

src/backend/common/config/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def __init__(self):
3939
self.azure_service_bus_namespace = os.getenv("AZURE_SERVICE_BUS_NAMESPACE")
4040
self.azure_queue_name = os.getenv("AZURE_QUEUE_NAME")
4141

42-
self.azure_openai_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
4342
self.ai_project_endpoint = os.getenv("AI_PROJECT_ENDPOINT")
4443
self.migrator_agent_model_deploy = os.getenv("MIGRATOR_AGENT_MODEL_DEPLOY")
4544
self.picker_agent_model_deploy = os.getenv("PICKER_AGENT_MODEL_DEPLOY")

src/backend/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ typing-extensions
3636
python-jose[cryptography]
3737
passlib[bcrypt]
3838
semantic-kernel[azure]==1.32.2
39-
openai==2.0.0
4039
sqlparse
4140
sqlglot
4241
unittest2

0 commit comments

Comments
 (0)