Skip to content

With the last DeepL API (Pro), the Rephrase "function" with input in EN (English) and asked for DE (German) with Tone=Confident returns a string in English #76

@RegisBarbier

Description

@RegisBarbier

Describe the bug
With the last DeepL API (Pro), the Rephrase "function" with input in EN (English) and asked for DE (German) with Tone=Confident returns a string in English

To Reproduce
Steps to reproduce the behavior:
URL:
{{baseUrl}}/v2/write/rephrase
Request:
{
    "text": [
        "Adapt our test cases for having them more modular and lighter."
     ],
    "source_lang": "EN",
    "target_lang": "DE",
    "writing_style": "default",
    "tone": "confident"
}
2. Check the returned JSON data
3. See error:
Response: STATUS = 200
{
    "improvements": [
        {
            "text": "Adapt your test cases to make them more modular and lighter.",
            "detected_source_language": "de",
            "target_language": "de"
        }
    ]
}

Expected behavior
I expect there an improvement (rephrase) written in German, which is the case with the same input in ENglish and Output asked in German and every other Writing_style or Tone.
Only with an input in English like "Adapt our test cases for having them more modular and lighter.", with source_lang = EN, target_lang=DE and Writing_style=default and tone=confident is producting this issue. with other allowed target languages I did not see any issue at this time.

Screenshots or sample code
Image

Additional context
N/A

Thank you very much in advance for solving this issue.
Best regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions