Skip to content

Missing "tag_handling_version" setting #74

Open

Description

@warm-tune

Currently official deepl api documentation has a references to the Tag handling version parameter, which is absent in the official java deepl client.

Could you please clarify when this option will be added to the java client?

Activity

  1. JanEbbing commented on Dec 2, 2025

    @JanEbbing
    Contributor

    Sorry, we have not documented this yet on the CL, you can opt in this way:

    import com.deepl.api.*;
    
    class Example {
        DeepLClient client;
    
        public Example() throws Exception {
            String authKey = "f63c02c5-f056-...";  // Replace with your key
            client = new DeepLClient(authKey);
            TextResult result = client.translateText("How are you?", null, "ACE", new TextTranslationOptions().setTagHandling("xml").setModelType("quality_optimized").setExtraBodyParameters(Map.of("tag_handling_version", "v2")));
        }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions