Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4312

Introduce model type setting for DeepL API calls

Details

    • Medium
    • Introduce model_type setting for DeepL API calls

    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

      1. create new setting for new parameter
      2. set new parameter for translation requests

       
      from code side: # new option should be introduced into \MittagQI\Translate5\Plugins\DeepL\Api\DTO\Request\TranslateOptions::__construct

      1. 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
      2. and then used here \MittagQI\Translate5\Plugins\DeepL\Api\DeepLApi::translate just as other params used.

      Attachments

        Activity

          Loading...
          Uploaded image for project: 'translate5'
          1. translate5
          2. TRANSLATE-4312

          Introduce model type setting for DeepL API calls

          Details

            • Medium
            • Introduce model_type setting for DeepL API calls

            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

              1. create new setting for new parameter
              2. set new parameter for translation requests

               
              from code side: # new option should be introduced into \MittagQI\Translate5\Plugins\DeepL\Api\DTO\Request\TranslateOptions::__construct

              1. 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
              2. and then used here \MittagQI\Translate5\Plugins\DeepL\Api\DeepLApi::translate just as other params used.

              Attachments

                Activity

                  People

                    sanya@mittagqi.com Sanya Mikhliaiev
                    sanya@mittagqi.com Sanya Mikhliaiev
                    Aleksandar Mitrev
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                      Created:
                      Updated:
                      Resolved:

                      People

                        sanya@mittagqi.com Sanya Mikhliaiev
                        sanya@mittagqi.com Sanya Mikhliaiev
                        Aleksandar Mitrev
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        1 Start watching this issue

                        Dates

                          Created:
                          Updated:
                          Resolved: