Skip to content

Update translate call to 2025-05-01 #33410

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

Open
wants to merge 92 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
f8d346b
Update translate call to 2025-05-01
SG-MS Mar 22, 2025
604dc3b
Remove legacy api calls
SG-MS Mar 27, 2025
99a73b3
Remove legacy api calls
SG-MS Mar 27, 2025
2576025
Update version
SG-MS Mar 27, 2025
49e5a02
Update grade description
SG-MS Mar 27, 2025
0a29d40
Update typespec for translate call
SG-MS Mar 31, 2025
0412828
Update typespec for translate call
SG-MS Mar 31, 2025
f3ead02
update typespec for translate call - Fix Formatting
SG-MS Mar 31, 2025
7130eec
CHeckpoint on translate API update
SG-MS Apr 4, 2025
ef4a153
Add reference sentences into set
SG-MS Apr 7, 2025
0856135
Add reference sentences into set
SG-MS Apr 7, 2025
b435220
Several updates to spec
SG-MS Apr 9, 2025
d506548
sync new openapi.json
SG-MS Apr 10, 2025
f0b1cbf
sync new openapi.json
SG-MS Apr 10, 2025
1c5fcb9
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 10, 2025
18d198e
Merge branch 'scgree/translation_2025-05-01' of https://github.com/Az…
SG-MS Apr 10, 2025
3ba9fc5
Fix examples and api
SG-MS Apr 10, 2025
3382918
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 10, 2025
9c1262c
Fix examples and api
SG-MS Apr 10, 2025
058537a
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 10, 2025
a3aeb82
Remove old files
SG-MS Apr 10, 2025
c4b531b
Remove old files
SG-MS Apr 10, 2025
8c4d3ff
FIx versioning
SG-MS Apr 10, 2025
20e3a7a
Fix examples in preview
SG-MS Apr 11, 2025
9a370c7
Fix examples in preview
SG-MS Apr 11, 2025
e8a1d7e
Fix examples in preview
SG-MS Apr 11, 2025
98a5368
Fix examples in preview
SG-MS Apr 11, 2025
429b89c
Fix examples in preview
SG-MS Apr 11, 2025
e06c129
Fix examples in preview
SG-MS Apr 11, 2025
114af2d
Fix examples
SG-MS Apr 11, 2025
d6e1af1
Removing defaults for tone and gender fields as per API design spec
zhangeugenia Apr 22, 2025
e3bc441
Update targets to an array value. Rename adaptiveDatasetIds to adapt…
SG-MS Apr 23, 2025
338c0b9
Adding missing go config in tspconfig.yaml
zhangeugenia Apr 24, 2025
b82e086
Recompiling typespec after changes
zhangeugenia Apr 24, 2025
41fde03
Fixing tspconfig for Document Translator as well (TSValidation CI is …
zhangeugenia Apr 24, 2025
393cfd7
Updating more misconfigs in Document Translator tspconfig
zhangeugenia Apr 24, 2025
3a909f6
More updates to DT tspconfig
zhangeugenia Apr 24, 2025
9b8f46a
More updates to DT tspconfig
zhangeugenia Apr 24, 2025
b166acd
More updates to Text tspconfig
zhangeugenia Apr 24, 2025
9af80e7
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 24, 2025
9f4ca6c
Add back in compliant v3 API
SG-MS Apr 25, 2025
fa80c05
Add back in compliant v3 API
SG-MS Apr 25, 2025
da26ee3
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 26, 2025
a9be2ab
Reduce parameters in 2025-05-1 version"
SG-MS Apr 29, 2025
5c42323
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 29, 2025
0520c0d
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 29, 2025
1931bfa
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 30, 2025
00cb4a6
Fix whitespace issue
SG-MS Apr 30, 2025
49e9481
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS Apr 30, 2025
e309853
Revert stable version number to v3.0
SG-MS Apr 30, 2025
fa5877f
Reverting version 3.0 to v3.0
SG-MS May 1, 2025
e11b7e2
Reverting version 3.0 to v3.0
SG-MS May 1, 2025
7f3aed6
Reverting version 3.0 to v3.0
SG-MS May 1, 2025
db2255e
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 1, 2025
b7cb9ba
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 2, 2025
c3830df
Merge branch 'scgree/translation_2025-05-01' of https://github.com/Az…
SG-MS May 2, 2025
5db7f79
Add GO SDK instructions
SG-MS May 2, 2025
6c1aed6
Add GO SDK instructions
SG-MS May 2, 2025
75b593c
Add GO SDK instructions
SG-MS May 2, 2025
9871d84
Add GO SDK instructions
SG-MS May 2, 2025
fd081bb
Remove readme/openapi instructions
SG-MS May 3, 2025
e7eca0a
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 5, 2025
6918686
TUrn off autorest again
SG-MS May 5, 2025
3ac2833
TUrn off autorest again
SG-MS May 5, 2025
e09521d
Remove readme/openapi instructions
SG-MS May 5, 2025
ac2533f
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 7, 2025
4604da2
Add autorest emitter
SG-MS May 7, 2025
886b567
Remove OpenAPI SDK generation
SG-MS May 8, 2025
6a8db16
Fix v3 api to remove breaking change
SG-MS May 9, 2025
e379194
Fix v3 api to remove breaking change
SG-MS May 9, 2025
4b3fc2f
Fix v3 api to remove breaking change
SG-MS May 9, 2025
cc132aa
Merge remote-tracking branch 'origin/main' into scgree/translation_20…
zhangeugenia May 9, 2025
9496736
Merge branch 'main' into scgree/translation_2025-05-01
zhangeugenia May 9, 2025
5f13e18
Unify v3 and 2025_05_01 body model
SG-MS May 9, 2025
f96839a
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 9, 2025
b6f4fa4
Merge branch 'scgree/translation_2025-05-01' of https://github.com/Az…
SG-MS May 9, 2025
8d42d2e
Unify v3 and 2025_05_01 body model
SG-MS May 9, 2025
37a0c42
Unify v3 and 2025_05_01 body model
SG-MS May 9, 2025
55f21c1
Unify v3 and 2025_05_01 body model
SG-MS May 9, 2025
2b52c5e
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 9, 2025
c858973
Fix examples
SG-MS May 9, 2025
34b8984
Fix examples
SG-MS May 9, 2025
3e96f49
Fix examples
SG-MS May 9, 2025
21306bb
Fix examples
SG-MS May 9, 2025
aee4378
Adding swagger-to-sdk block
zhangeugenia May 10, 2025
254455e
Merge branch 'scgree/translation_2025-05-01' of https://github.com/Az…
zhangeugenia May 10, 2025
3687c5c
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 12, 2025
2e821a7
Remove 3.0
SG-MS May 13, 2025
d550571
add 3.0
SG-MS May 13, 2025
7df1a1e
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
SG-MS May 13, 2025
c49c8f3
Remove Go
SG-MS May 13, 2025
1b94ded
Remove go sdk
SG-MS May 13, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ options:
"@azure-tools/typespec-csharp":
flavor: azure
package-dir: "Azure.AI.Translation.Document"
namespace: Azure.AI.Translation.Document
namespace: "{package-dir}"
clear-output-folder: true
model-namespace: false
generate-sample-project: false
"@azure-tools/typespec-python":
flavor: azure
package-dir: "azure-ai-translation-document"
namespace: "azure.ai.translation.document"
package-name: "{package-dir}"
package-mode: dataplane
package-version: "1.1.0b1"
generate-sample-project: false
generate-test: false
generate-sample: false
generate-test: true
generate-sample: true
"@azure-tools/typespec-java":
package-dir: "azure-ai-translation-document"
namespace: com.azure.ai.translation.document
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"title": "Gets the set of languages currently supported by other operations of the Translator.",
"operationId": "GetSupportedLanguages",
"parameters": {
"X-ClientTraceId": "kayfnugjec",
"scope": "translation,transliteration,dictionary",
"Accept-Language": "en",
"If-None-Match": "fpnhruttllvc",
"api-version": "2025-05-01-preview"
},
"responses": {
"200": {
"body": {
"translation": {
"en": {
"name": "English",
"nativeName": "English",
"dir": "ltr"
},
"es": {
"name": "Spanish",
"nativeName": "Español",
"dir": "ltr"
}
},
"transliteration": {
"ar": {
"name": "Arabic",
"nativeName": "العربية",
"scripts": [
{
"code": "Arab",
"name": "Arabic",
"nativeName": "العربية",
"dir": "rtl",
"toScripts": [
{
"code": "Latn",
"name": "Latin",
"nativeName": "اللاتينية",
"dir": "ltr"
}
]
},
{
"code": "Latn",
"name": "Latin",
"nativeName": "اللاتينية",
"dir": "ltr",
"toScripts": [
{
"code": "Arab",
"name": "Arabic",
"nativeName": "العربية",
"dir": "rtl"
}
]
}
]
}
},
"dictionary": {
"cs": {
"name": "Czech",
"nativeName": "Čeština",
"dir": "ltr",
"translations": [
{
"name": "English",
"nativeName": "English",
"dir": "ltr",
"code": "en"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Gets the set of languages currently supported by other operations of the Translator with minimum properties.",
"operationId": "GetSupportedLanguages",
"parameters": {
"api-version": "2025-05-01-preview"
},
"responses": {
"200": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"title": "Translate Text",
"operationId": "Translate",
"parameters": {
"X-ClientTraceId": "ndbkaatzsnoetqkiehappoza",
"api-version": "2025-05-01-preview",
"body": [
{
"text": "This is a test.",
"script": "Latn",
"language": "en",
"textType": "Plain",
"targets": [
{
"language": [
"cs"
],
"script": "Latn",
"profanityAction": "NoAction",
"profanityMarker": "Asterisk",
"deploymentNameModel": "general",
"allowFallback": true,
"grade": "basic",
"tone": "formal",
"gender": "neutral",
"adaptiveDatasetId": "21000",
"referenceTextPairs": [
{
"referenceTextPairsSource": "Please test this out.",
"referenceTextPairsTarget": "Vyzkoušejte si to."
}
]
}
]
}
]
},
"responses": {
"200": {
"body": [
{
"detectedLanguage": {
"language": "en",
"score": 1.0
},
"translations": [
{
"to": "cs",
"text": "Tohle je test.",
"transliteration": {
"text": "Tohle je test.",
"script": "Latn"
}
}
],
"sourceText": {
"text": "This is a test"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "Translate Text with minimum properties",
"operationId": "Translate",
"parameters": {
"api-version": "2025-05-01-preview",
"body": [
{
"text": "This is a test.",
"targets": [
{
"language": [
"cs"
]
}
]
}
]
},
"responses": {
"200": {
"body": [
{
"translations": [
{
"text": "Tohle je test.",
"to": "cs"
}
]
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Transliterate Text",
"operationId": "Transliterate",
"parameters": {
"X-ClientTraceId": "dzncrimwmvtwjnheh",
"language": "zh-Hans",
"fromScript": "Hans",
"toScript": "Latn",
"api-version": "2025-05-01-preview",
"body": [
{
"text": "这是个测试。"
}
]
},
"responses": {
"200": {
"body": [
{
"text": "zhè shì gè cè shì。",
"script": "Latn"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Transliterate Text with minimum properties",
"operationId": "Transliterate",
"parameters": {
"language": "zh-Hans",
"fromScript": "Hans",
"toScript": "Latn",
"api-version": "2025-05-01-preview",
"body": [
{
"text": "这是个测试。"
}
]
},
"responses": {
"200": {
"body": [
{
"text": "zhè shì gè cè shì。",
"script": "Latn"
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"X-ClientTraceId": "svun",
"language": "en",
"script": "Latn",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "How are you? I am fine. What did you do today?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Find Sentence Boundaries with minimum properties",
"operationId": "FindSentenceBoundaries",
"parameters": {
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "How are you? I am fine. What did you do today?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scope": "translation,transliteration,dictionary",
"Accept-Language": "en",
"If-None-Match": "fpnhruttllvc",
"api-version": "3.0"
"api-version": "v3.0"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Gets the set of languages currently supported by other operations of the Translator with minimum properties.",
"operationId": "GetSupportedLanguages",
"parameters": {
"api-version": "3.0"
"api-version": "v3.0"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"X-ClientTraceId": "yqst",
"from": "en",
"to": "es",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "fly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"from": "en",
"to": "es",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "fly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"X-ClientTraceId": "vykwwekvcncclrmsyjhbok",
"from": "en",
"to": "es",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "fly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"from": "en",
"to": "es",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "fly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"fromScript": "Latn",
"toScript": "Latn",
"allowFallback": true,
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "This is a test."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"to": [
"fmlxpuepn"
],
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "This is a test."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"language": "zh-Hans",
"fromScript": "Hans",
"toScript": "Latn",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "这是个测试。"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"language": "zh-Hans",
"fromScript": "Hans",
"toScript": "Latn",
"api-version": "3.0",
"api-version": "v3.0",
"body": [
{
"text": "这是个测试。"
Expand Down
Loading
Loading