Skip to content

Commit 4853803

Browse files
Merge pull request #4594 from laujan/latest-gpt-min-4o-feedback
Latest gpt min 4o feedback
2 parents da488e2 + 6e0e4e7 commit 4853803

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

articles/ai-services/translator/text-translation/how-to/migrate-to-v4.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ The following table compares Translator `2025-05-01-preview` and Translator v3 A
5252
|[Translate text](../reference/v4/translate-api.md)|[Translate text](../reference/v3/translate.md)|
5353
|[Transliterate](../reference/v4/transliterate-api.md)|[Transliterate](../reference/v3/transliterate.md)|
5454
|[Languages](../reference/v4/get-languages.md)|[Languages](../reference/v3/languages.md)|
55-
|Feature no longer supported. Use the [Azure AI Language detection feature](../../../language-service/language-detection/overview.md)|
56-
|Feature no longer supported. Use sentence delimiters function or a Natural Language Processing (NLP) library for your programming language.|[BreakSentence](../reference/v3/break-sentence.md)|
57-
|Feature no longer supported|[Dictionary Lookup](../reference/v3/dictionary-lookup.md)|
58-
|Feature no longer supported|[Dictionary Examples](../reference/v3/dictionary-examples.md)|
55+
[BreakSentence](../reference/v3/break-sentence.md)|Feature no longer supported.<br>Use sentence delimiters function or a Natural Language Processing (NLP) library supported for your programming language.|
56+
[Dictionary Lookup](../reference/v3/dictionary-lookup.md)|Feature no longer supported|
57+
|[Dictionary Examples](../reference/v3/dictionary-examples.md)|Feature no longer supported|
58+
5959

6060
## Next Steps
6161

articles/ai-services/translator/text-translation/reference/v4/translate-api.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,14 @@ Request parameters passed with the request are as follows:
5656
| **language** | string | False | Specifies the language code for the `source` text. If not specified, the system autodetects the language of the source text. Accepted values are list of language code supported by the specified model. |
5757
| **script** | string | False | Specifies the script of the source text. |
5858

59-
#### Targets
60-
61-
| Parameter | Type | Required | Description |
62-
| --- | --- | --- | --- |
63-
| **`targets`** | array | True | User-specified values for the translated (`target`) text. |
64-
65-
#### Optional parameters (targets array)
59+
#### Targets array (user-specificed values for the translaated text)
6660

6761
| Parameter | Type | Required? | Description |
6862
| --- | --- | --- | --- |
63+
| **targets.language** | string | True |The language code for the translated (`target`) text *specified in the `targets` array*. Accepted values are [supported language](../../../language-support.md) codes for the translation operation.|
6964
| **targets.script** | string | False | Specify the script of the translated text. |
7065
|**targets.deploymentName** | string | False | Default is `general`, which uses `NMT` system. `your-model-name-gpt-4o-mini` is an example deployment name for the GPT-4o-mini model. `gpt-4o` uses GPT-4o model.<br`<custom model id>` uses the custom `NMT` model tuned by customer.<br> |
71-
| **targets.allowFallback** | string | False | Indicates that if the desired model does not support a specific source and target language pair, the service may default to a general system as an alternative. This action ensures that translations can still be provided even when the preferred model is unavailable. Default is `true`. If `false` system returns an error if language pair isn't supported. |
66+
| **targets.allowFallback** | string | False | If the desired model does not support a particular pair of source and target languages, an alternative approach may be employed. In such cases, the service may default to utilizing a general system as a substitute. This action ensures that translations can still be provided even when the preferred model is unavailable. Default is `true`. If `false` system returns an error if language pair isn't supported. |
7267
| **targets.tone** | string | False | Desired tone of target translation. Accepted values are `formal`, `informal`, or `neutral`. |
7368
| **targets.gender** (For more information, *see* [Gender-specific translations](#gender-specific-translations))| string | False | Desired gender of target translation. Accepted values are `male`, `female`, or `neutral`.|
7469
| **targets.adaptiveDatasetId** | string | False | Reference dataset ID having sentence pair to generate adaptive customized translation |
@@ -260,7 +255,7 @@ Here, users request specific `GPT` models for deployment.
260255
"targets": [
261256
{
262257
"language": "es",
263-
" deploymentName": "gpt-4o-mini"
258+
" deploymentName": "your-gpt-4omini-deployment-name"
264259
},
265260
{
266261
"language": "de"
@@ -318,13 +313,13 @@ Here, users request specific `GPT` models for deployment.
318313
"targets": [
319314
{
320315
"language": "es",
321-
"model": "gpt-4o-mini",
316+
"deploymentName": "your-gpt-4omini-deployment-name",
322317
"tone": "formal",
323318
"gender": "female"
324319
},
325320
{
326321
"language": "es",
327-
"model": "gpt-4o-mini",
322+
"deploymentName": "your-gpt-4omini-deployment-name",
328323
"tone": "formal",
329324
"gender": "male"
330325
}
@@ -486,7 +481,7 @@ Adaptive custom translation deploys on Translator service infrastructure. Charge
486481
"targets": [
487482
{
488483
"language": "es",
489-
"model": "CT-model-en-es-hr-020"
484+
"deploymentName": "CT-model-en-es-hr-020"
490485
}
491486
]
492487
}

0 commit comments

Comments
 (0)