File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ param publicNetworkAccess string = 'Enabled'
27
27
param location string = resourceGroup ().location
28
28
param tags object = {}
29
29
30
- resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' = {
30
+ // NN:TODO resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' = {
31
+ resource hub 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = {
31
32
name : name
32
33
location : location
33
34
tags : tags
@@ -54,6 +55,7 @@ resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' =
54
55
discoveryUrl : 'https://${location }.api.azureml.ms/discovery'
55
56
}
56
57
58
+ /* NN:TODO
57
59
resource contentSafetyDefaultEndpoint 'endpoints' = {
58
60
name: 'Azure.ContentSafety'
59
61
properties: {
@@ -62,16 +64,25 @@ resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' =
62
64
associatedResourceId: openAi.id
63
65
}
64
66
}
67
+ */
65
68
66
- resource openAiConnection 'connections' = {
69
+ /*
70
+ NN:TODO
71
+ Connections are not in the GA Swagger - they are only in public preview of 2024-04-01-preview version
72
+ That is what you specify with the workspace@ version for AML API version
73
+ The ApiVersion specified in the metadata is for the Azure Cognitive Services version (that wraps the OpenAPI call)
74
+ */
75
+
76
+ resource openAiConnection 'connections@2024-04-01-preview' = { // NN:TODO Add @version to ensure resource is correctly versioned
67
77
name : 'aoai-connection'
68
78
properties : {
69
79
category : 'AzureOpenAI'
70
80
authType : 'ApiKey'
71
81
isSharedToAll : true
72
82
target : openAi .properties .endpoints ['OpenAI Language Model Instance API' ]
73
83
metadata : {
74
- ApiVersion : '2023-07-01-preview'
84
+ //ApiVersion: '2023-07-01-preview'
85
+ ApiVersion : '2024-02-01'
75
86
ApiType : 'azure'
76
87
ResourceId : openAi .id
77
88
}
You can’t perform that action at this time.
0 commit comments