Skip to content

Commit

Permalink
[WRP] 2024-07-01-preview change (#29861)
Browse files Browse the repository at this point in the history
* Add changes for 07-01-preview

* add missing properties

* rename example

* rename example

* Update Schema

* Update type dicriminator

* Fix errors

* Error fix

* Update example and readme

* run prettier

* Rename to fix some schema name conflict

* Update suppressions

* Update comment feedbacks

* run prettier
  • Loading branch information
ZhidaLiu authored Jul 23, 2024
1 parent a43edac commit c61c6ff
Show file tree
Hide file tree
Showing 14 changed files with 850 additions and 291 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"api-version": "2024-07-01-preview",
"body": {
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand All @@ -30,6 +31,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/endpoints/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/endpoints/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/endpoints/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/endpoints/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@
"body": {
"value": [
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.ada",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"rateLimits": [
{
Expand Down Expand Up @@ -65,23 +61,17 @@
},
"format": "OpenAI",
"name": "ada",
"version": "1",
"source": null,
"callRateLimit": null
"version": "1"
},
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.babbage",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"rateLimits": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "test-rg",
"workspaceName": "aml-workspace-name",
"connectionName": "testConnection",
"raiBlocklistName": "raiBlocklistName",
"api-version": "2024-07-01-preview",
"body": [
{
"name": "myblocklistitem1",
"properties": {
"pattern": "^[a-z0-9_-]{2,16}$",
"isRegex": true
}
},
{
"name": "myblocklistitem2",
"properties": {
"pattern": "blockwords",
"isRegex": false
}
}
]
},
"responses": {
"200": {
"body": {
"name": "myblocklist",
"properties": {
"description": "Brief description of the blocklist"
},
"etag": "\"00000000-0000-0000-0000-000000000000\""
}
},
"202": {
"headers": {
"Location": "example_location"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "test-rg",
"workspaceName": "aml-workspace-name",
"connectionName": "testConnection",
"raiBlocklistName": "raiBlocklistName",
"api-version": "2024-07-01-preview",
"body": [
"myblocklistitem1",
"myblocklistitem2"
]
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"api-version": "2024-07-01-preview",
"body": {
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand All @@ -30,6 +31,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/connections/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand All @@ -54,6 +56,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/connections/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/connections/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@
"body": {
"value": [
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.ada",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"rateLimits": [
{
Expand Down Expand Up @@ -65,23 +61,17 @@
},
"format": "OpenAI",
"name": "ada",
"version": "1",
"source": null,
"callRateLimit": null
"version": "1"
},
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.babbage",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"rateLimits": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@
"body": {
"value": [
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.ada",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"connectionIds": [
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/connections/connection-1",
Expand Down Expand Up @@ -68,23 +64,17 @@
},
"format": "OpenAI",
"name": "ada",
"version": "1",
"source": null,
"callRateLimit": null
"version": "1"
},
{
"baseModel": null,
"isDefaultVersion": false,
"skus": [
{
"name": "Standard",
"usageName": "OpenAI.Standard.babbage",
"deprecationDate": "2024-03-01T00:00:00+00:00",
"capacity": {
"minimum": null,
"maximum": 10000,
"step": null,
"default": 120
"maximum": 10000
},
"connectionIds": [
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/connections/connection-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"name": "text-davinci-003",
"type": "Microsoft.MachineLearningServices/workspaces/connections/deployments",
"properties": {
"type": "Azure.OpenAI",
"model": {
"format": "OpenAI",
"name": "text-davinci-003",
Expand Down
Loading

0 comments on commit c61c6ff

Please sign in to comment.