We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde2384 commit e13b8ddCopy full SHA for e13b8dd
deepl/__main__.py
@@ -83,6 +83,11 @@ def action_text(
83
**kwargs,
84
):
85
"""Action function for the text command."""
86
+
87
+ if show_model_type_used and kwargs.get("model_type") is None:
88
+ # specify model_type so API includes model_type_used response parameter
89
+ kwargs["model_type"] = deepl.ModelType.LATENCY_OPTIMIZED
90
91
translation = translator.translate_text(**kwargs)
92
output_list = (
93
translation if isinstance(translation, List) else [translation]
0 commit comments