You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AI Models that can be deployed and attached to the Foundry hub can be modified by changing the parameters within the [main.parameters.json](../infra/main.parameters.json) file.
3
2
4
-
By modifying the parameters listed in the parameters.json 'aiModelDeployments' section, additional or different models can be deployed with the solution and ready for use after the deployment. Simply modify the values to your liking in each of the objects, or add additional objects to the array.
5
-
```powershell
3
+
The AI Models that can be deployed and attached to the Foundry hub can be modified by changing the parameters within the [main.parameters.json](../infra/main.parameters.json) file.
6
4
5
+
By modifying the parameters `aiEmbeddingModelDeployment` and `aiGPTModelDeployment` listed in the parameters.json, different embedding and GPT models can be deployed with the solution and ready for use after the deployment. Simply modify the values to your liking in each of the objects.
7
6
8
-
"aiModelDeployments": {
9
-
"value": [
10
-
{
11
-
"name": "textembed",
12
-
"model": {
13
-
"name": modelName,
14
-
"format": modelPublisherFormat,
15
-
"version": modelVersion
16
-
},
17
-
"sku": {
18
-
"name": skuName,
19
-
"capacity": capacity
20
-
}
21
-
},
22
-
{
23
-
"name": "gpt",
24
-
"model": {
25
-
"name": "gpt-4o",
26
-
"version": "2024-05-13",
27
-
"format": "OpenAI"
28
-
},
29
-
"sku": {
30
-
"name": "GlobalStandard",
31
-
"capacity": 10
32
-
}
33
-
}
34
-
]
7
+
```powershell
8
+
"aiEmbeddingModelDeployment": {
9
+
"value": {
10
+
"modelName": modelName,
11
+
"version": modelVersion,
12
+
"capacity": capacity
13
+
}
14
+
},
15
+
"aiGPTModelDeployment": {
16
+
"value": {
17
+
"modelName": "gpt-4o",
18
+
"version": "2024-05-13",
19
+
"capacity": 150
20
+
}
35
21
}
36
22
```
23
+
37
24
To find and validate additional model information, the [AI Foundry](https://ai.azure.com/explore/models) model page has the above parameters to refer to, as does the Microsoft Learn page for [Azure OpenAI Service Models](https://learn.microsoft.com/en-us/azure/ai-services/openai_) information.
Copy file name to clipboardExpand all lines: infra/main.bicep
+36-13Lines changed: 36 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,27 @@ targetScope = 'resourceGroup'
5
5
@description('The name of the environment/application. Use alphanumeric characters only.')
6
6
paramnamestring
7
7
8
-
@description('Specifies the location for all the Azure resources. Defaults to the location of the resource group.')
8
+
@metadata({ azd: { type: 'location' } })
9
+
@description('Specifies the location for all the Azure resources.')
9
10
paramlocationstring
10
11
11
-
@description('Optional. Specifies the OpenAI deployments to create.')
12
-
paramaiModelDeploymentsdeploymentsType[] = []
12
+
@description('Specifies the AI embedding model to use for the AI Foundry deployment. This is the model used for text embeddings in AI Foundry. NOTE: Any adjustments to this parameter\'s values must also be made on the aiDeploymentsLocation metadata in the main.bicep file.')
@description('Specifies the AI chat model to use for the AI Foundry deployment. This is the model used for chat interactions in AI Foundry. NOTE: Any adjustments to this parameter\'s values must also be made on the aiDeploymentsLocation metadata in the main.bicep file.')
0 commit comments