Skip to content

Commit

Permalink
Setting all defaults to keys (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith authored Jan 21, 2024
1 parent f2ced89 commit ca3f2cc
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion code/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_config():
AZURE_OPENAI_API_VERSION = os.environ.get("AZURE_OPENAI_API_VERSION", "2023-06-01-preview")
AZURE_OPENAI_STREAM = os.environ.get("AZURE_OPENAI_STREAM", "true")
AZURE_OPENAI_MODEL_NAME = os.environ.get("AZURE_OPENAI_MODEL_NAME", "gpt-35-turbo") # Name of the model, e.g. 'gpt-35-turbo' or 'gpt-4'
AZURE_AUTH_TYPE = os.environ.get("AZURE_AUTH_TYPE", "rbac")
AZURE_AUTH_TYPE = os.environ.get("AZURE_AUTH_TYPE", "keys")

SHOULD_STREAM = True if AZURE_OPENAI_STREAM.lower() == "true" else False

Expand Down
2 changes: 1 addition & 1 deletion infra/deployment.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ param newGuidString string = newGuid()
'keys'
'rbac'
])
param authType string = 'rbac'
param authType string = 'keys'

@description('Id of the user or app to assign application roles')
param principalId string = ''
Expand Down
110 changes: 55 additions & 55 deletions infra/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "1303744853928505438"
"version": "0.24.24.22086",
"templateHash": "9176113728480332345"
}
},
"parameters": {
Expand Down Expand Up @@ -325,7 +325,7 @@
},
"authType": {
"type": "string",
"defaultValue": "rbac",
"defaultValue": "keys",
"allowedValues": [
"keys",
"rbac"
Expand Down Expand Up @@ -1163,8 +1163,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1232,8 +1232,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1301,8 +1301,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1370,8 +1370,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1439,8 +1439,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1508,8 +1508,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1574,8 +1574,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1643,8 +1643,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1712,8 +1712,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1781,8 +1781,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1850,8 +1850,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1919,8 +1919,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -1988,8 +1988,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2054,8 +2054,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2123,8 +2123,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2192,8 +2192,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2261,8 +2261,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2330,8 +2330,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2396,8 +2396,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2465,8 +2465,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2534,8 +2534,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2603,8 +2603,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2669,8 +2669,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2738,8 +2738,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2807,8 +2807,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down Expand Up @@ -2876,8 +2876,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "8211880587811090337"
"version": "0.24.24.22086",
"templateHash": "2184194315885104837"
},
"description": "Creates a role assignment for a service principal."
},
Expand Down

0 comments on commit ca3f2cc

Please sign in to comment.