Skip to content

Commit 4ebcb84

Browse files
lilkraftwerkJanEbbing
authored andcommitted
Update docs around auto-selection of models
1 parent 737e275 commit 4ebcb84

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

api-reference/translate.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ Note that we do not include examples for our client libraries in every single se
211211

212212
When the `model_type` parameter is set, the response includes a `model_type_used` field indicating which model was used.
213213

214+
<Warning>
215+
To ensure accurate automatic language detection, the API uses next-gen models for all requests that omit `source_lang`, regardless of `model_type`. If your source language is known, you can specify `source_lang` to allow `latency_optimized` models to be used where available for your language pair. See [supported languages](/docs/getting-started/supported-languages) for language-specific model availability.
216+
</Warning>
217+
214218
<Info>
215219
[Tag handling v2](/docs/xml-and-html-handling/tag-handling-v2) is compatible only with next-gen models and implicitly sets
216220
`model_type` to `quality_optimized`. Setting both `model_type=latency_optimized` and `tag_handling_version=v2` will return an

0 commit comments

Comments
 (0)