Skip to content

Commit 3dc0fe6

Browse files
authoredJun 18, 2024
Merge pull request #110 from DeepLcom/context-parameter-ga
Remove alpha label from context parameter
2 parents f5efb13 + 6019e28 commit 3dc0fe6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
 

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ arguments are:
155155
containing the glossary ID, or a `GlossaryInfo` as returned by
156156
`get_glossary()`.
157157
- `context`: specifies additional context to influence translations, that is not
158-
translated itself. Note this is an **alpha feature**: it may be deprecated at
159-
any time, or incur charges if it becomes generally available.
160-
See the [API documentation][api-docs-context-param] for more information and
158+
translated itself. Characters in the `context` parameter are not counted toward billing.
159+
See the [API documentation][api-docs-context-param] for more information and
161160
example usage.
162161
- `tag_handling`: type of tags to parse before translation, options are `'html'`
163162
and `'xml'`.

‎deepl/translator.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,9 @@ def translate_text(
359359
:param target_lang: language code to translate text into, for example
360360
"DE", "EN-US", "FR".
361361
:param context: (Optional) Additional contextual text to influence
362-
translations, that is not translated itself. Note: this is an alpha
363-
feature: it may be deprecated at any time, or incur charges if it
364-
becomes generally available. See the API documentation for more
365-
information and example usage.
362+
translations, that is not translated itself. Characters in the
363+
`context` parameter are not counted toward billing. See the API
364+
documentation for more information and example usage.
366365
:param split_sentences: (Optional) Controls how the translation engine
367366
should split input into sentences before translation, see
368367
:class:`SplitSentences`.

0 commit comments

Comments
 (0)