Skip to content

feat request: return consumed characters for each translation response #28

Open
@razvanioan

Description

@razvanioan

It would be great if for each translation response we'd get also the number of characters used for that specific request.

Always or maybe only if a specific parameter has been set in the request.

For example, I've just realized that if I send an HTML formatted as source text, without the tag_handling parameter will consume all characters, including from the HTML structure code (tags, attributes and their values) but if I pass the tag_handling parameter these will not be counted as used.

I know that I can make use of the separate usage statistics, but it might not be relevant if I'd like to keep track of the usage of each translation, and multiple concurrent users might use my app in the same time.

Otherwise, I have to try to count the characters myself but I might not get the same result as the exact used values.

PS: this is generally available for the API, not only Python lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    api changeRequires changes to the DeepL APIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions