Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeSpec] Upgrade autorest and azure-core to 0.35.1 #26464

Merged
merged 4 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/typespec-apiview": "0.4.4",
"@azure-tools/typespec-autorest": "0.35.0",
"@azure-tools/typespec-azure-core": "0.35.0",
"@azure-tools/typespec-autorest": "0.35.1",
"@azure-tools/typespec-azure-core": "0.35.1",
"@azure-tools/typespec-azure-resource-manager": "0.35.0",
"@azure-tools/typespec-client-generator-core": "0.35.0",
"@azure-tools/typespec-providerhub": "0.35.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@
"paths": {
"/deployments/{deploymentId}/audio/transcriptions": {
"post": {
"operationId": "GetAudioTranscriptionAsResponseObject",
"operationId": "GetAudioTranscriptionAsPlainText",
"description": "Gets transcribed text and associated metadata from provided spoken audio data. Audio will be transcribed in the\nwritten language corresponding to the language it was spoken in.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
Expand All @@ -78,29 +75,19 @@
"type": "string"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.file"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.language"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.model"
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AudioTranscriptionOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranscription"
"type": "string"
}
},
"default": {
Expand All @@ -118,18 +105,15 @@
},
"x-ms-examples": {
"Gets transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_transcription_object.json"
"$ref": "./examples/audio_transcription_text.json"
}
}
}
},
"/deployments/{deploymentId}/audio/translations": {
"post": {
"operationId": "GetAudioTranslationAsResponseObject",
"operationId": "GetAudioTranslationAsPlainText",
"description": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
Expand All @@ -142,26 +126,19 @@
"type": "string"
},
{
"$ref": "#/parameters/AudioTranslationOptions.file"
},
{
"$ref": "#/parameters/AudioTranslationOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranslationOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranslationOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranslationOptions.model"
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AudioTranslationOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranslation"
"type": "string"
}
},
"default": {
Expand All @@ -179,7 +156,7 @@
},
"x-ms-examples": {
"Gets English language transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_translation_object.json"
"$ref": "./examples/audio_translation_text.json"
}
}
}
Expand Down Expand Up @@ -484,6 +461,133 @@
}
}
},
"x-ms-paths": {
"/deployments/{deploymentId}/audio/transcriptions?api-version={apiVersion}": {
"post": {
"operationId": "GetAudioTranscriptionAsResponseObject",
"description": "Gets transcribed text and associated metadata from provided spoken audio data. Audio will be transcribed in the\nwritten language corresponding to the language it was spoken in.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.file"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.language"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranscription"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_transcription_object.json"
}
}
}
},
"/deployments/{deploymentId}/audio/translations?api-version={apiVersion}": {
"post": {
"operationId": "GetAudioTranslationAsResponseObject",
"description": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranslationOptions.file"
},
{
"$ref": "#/parameters/AudioTranslationOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranslationOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranslationOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranslationOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranslation"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets English language transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_translation_object.json"
}
}
}
}
},
"definitions": {
"AudioTaskLabel": {
"type": "string",
Expand Down
Loading