Details
-
New Feature
-
Resolution: Unresolved
-
None
-
None
-
Medium
-
Introduce model_type setting for DeepL API calls
-
Empty show more show less
Description
to use model_type param we'll have to update DeepL SDK
right now we use 1.8.0
latest is 1.10.0also to actually use that param we'll have to change code a little bit as we don't set that param right now (it wasn't there) (edited)
so: # update DeepL SDK version
- create new setting for new parameter
- set new parameter for translation requests
from code side: # new option should be introduced into \MittagQI\Translate5\Plugins\DeepL\Api\DTO\Request\TranslateOptions::__construct
- set to DTO here: \editor_Plugins_DeepL_Connector::createTranslateResponse by fetching it from $this->config->runtimeOptions->plugins->DeepL->modelType similar to how formality is set there
- and then used here \MittagQI\Translate5\Plugins\DeepL\Api\DeepLApi::translate just as other params used.