Skip to content

Commit 331dda5

Browse files
Remove openai key variable
1 parent 1f6d780 commit 331dda5

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

infra/main.bicep

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ module backend_docker 'deploy_backend_docker.bicep' = {
205205
AZURE_OPEN_AI_ENDPOINT: aifoundry.outputs.aiServicesTarget
206206
AZURE_OPENAI_API_VERSION: azureOpenAIApiVersion
207207
AZURE_OPENAI_RESOURCE: aifoundry.outputs.aiServicesName
208-
AZURE_OPENAI_API_KEY: '@Microsoft.KeyVault(SecretUri=${kvault.outputs.keyvaultUri}secrets/AZURE-OPENAI-KEY/)'
209208
AZURE_AI_AGENT_ENDPOINT: aifoundry.outputs.projectEndpoint
210209
AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME: gptModelName
211210
USE_CHAT_HISTORY_ENABLED: 'True'
@@ -265,7 +264,6 @@ output AZURE_COSMOSDB_ENABLE_FEEDBACK string = 'True'
265264
output AZURE_OPEN_AI_DEPLOYMENT_MODEL string = gptModelName
266265
output AZURE_OPEN_AI_DEPLOYMENT_MODEL_CAPACITY int = gptDeploymentCapacity
267266
output AZURE_OPEN_AI_ENDPOINT string = aifoundry.outputs.aiServicesTarget
268-
output AZURE_OPENAI_API_KEY string = ''
269267
output AZURE_OPEN_AI_MODEL_DEPLOYMENT_TYPE string = deploymentType
270268
output AZURE_OPENAI_EMBEDDING_MODEL string = embeddingModel
271269
output AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY int = embeddingDeploymentCapacity

src/api/.env.sample

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ AZURE_COSMOSDB_DATABASE="db_conversation_history"
99
AZURE_COSMOSDB_ENABLE_FEEDBACK="True"
1010
AZURE_OPEN_AI_DEPLOYMENT_MODEL="gpt-4o-mini"
1111
AZURE_OPEN_AI_ENDPOINT=
12-
AZURE_OPENAI_API_KEY=
1312
AZURE_OPENAI_API_VERSION=
1413
AZURE_OPENAI_RESOURCE=
1514
OPENAI_API_VERSION=

src/api/plugins/chat_with_data_plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __init__(self):
1414
config = Config()
1515
self.azure_openai_deployment_model = config.azure_openai_deployment_model
1616
self.azure_openai_endpoint = config.azure_openai_endpoint
17-
self.azure_openai_api_key = config.azure_openai_api_key
1817
self.azure_openai_api_version = config.azure_openai_api_version
1918
self.azure_ai_search_endpoint = config.azure_ai_search_endpoint
2019
self.azure_ai_search_api_key = config.azure_ai_search_api_key

src/api/services/chat_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class ChatService:
7272
def __init__(self, request : Request):
7373
config = Config()
7474
self.azure_openai_endpoint = config.azure_openai_endpoint
75-
self.azure_openai_api_key = config.azure_openai_api_key
7675
self.azure_openai_api_version = config.azure_openai_api_version
7776
self.azure_openai_deployment_name = config.azure_openai_deployment_model
7877
self.agent = request.app.state.agent

0 commit comments

Comments
 (0)