Skip to content

Releases: intento/intento-nodejs

support `provider_parameters` option

17 Nov 09:28
Compare
Choose a tag to compare

v1.0.2

03 Nov 11:34
Compare
Choose a tag to compare
  • Add support tone of voice property (#33) 71df253
  • added the call to truly async e2474ed
  • webpack version bump 1b5fbef
  • allow comments in json snippets 3d0a5ec

v1.0.1...v1.0.2

V1.0.1

14 May 09:30
Compare
Choose a tag to compare
  • Fixed bug then using POST /ai/text/translate request. Promise will resolve beyond the number of times that code calls API
  • More options to run server-side examples
  • Language detect examples
  • Custom models support example
  • Bump minimist from 1.2.2 to 1.2.3 in /samples/cli

v1.0.0

01 Mar 06:04
Compare
Choose a tag to compare

Translate via async now is a default behavior.

The default response format differs now

client.ai.text.translate
    .fulfill({ text: "How's it going?", to: 'es' })
    .then(console.log)

The response contains the translated text, service information, and meta-information (i.e., detected language):

{
    "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "done": true,
    "response": [
        {
            "results": [
                "¿Cómo va todo?"
            ],
            "meta": {
                "detected_source_language": [
                    "en"
                ]
            },
            "service": {
                "provider": {
                    "id": "ai.text.translate.deepl.api",
                    "name": "DeepL API",
                    "vendor": "DeepL",
                    "description": "API",
                    "logo": "https://inten.to/static/img/api/deepl_translate.png"
                }
            }
        }
    ],
    "meta": {
        // information about initial request
    },
    "error": null
}

To get the old behavior set async: false

client.ai.text.translate
    .fulfill({ text: "How's it going?", to: 'es' , async: false })
    .then(console.log)
{
    "results": [
        "¿Cómo va todo?"
    ],
    "meta": {
        "detected_source_language": [
            "en"
        ],
        "timing": {
            "total": 0.391781,
            "providers": 0.356072
        },
        "routing": {
            "id": "best"
        }
    },
    "service": {
        "provider": {
            "id": "ai.text.translate.deepl.api",
            "name": "DeepL API",
            "timing": {
                "provider": 0.356072
            }
        }
    }
}

To use async mode but get the operation id set awaitAsync: false

client.ai.text.translate
    .fulfill({ text: "How's it going?", to: 'es' , awaitAsync: false })
    .then(console.log)
{
    "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}

v0.10.0

01 Mar 06:06
Compare
Choose a tag to compare
  • revoke experimental multiprovider feature
  • Bump handlebars from 4.1.2 to 4.5.3

v0.7.0

30 Aug 19:32
Compare
Choose a tag to compare

Breaking change

N/A

Enhancements

  • supports routing
  • dependencies security updates

v0.6.0

30 Aug 19:34
Compare
Choose a tag to compare

Breaking change

N/A

Enhancements

  • supports trace to help debugging requests

v0.5.0

30 Aug 19:35
Compare
Choose a tag to compare

Breaking change

N/A

Enhancements

  • support language detection intent

v0.4.2

25 Apr 12:52
Compare
Choose a tag to compare

Breaking change

N/A

Enhancements

  • CLI supports image tagging
  • example: how to use a built version in a browser

[BROKEN] v0.4.1

25 Apr 07:34
Compare
Choose a tag to compare
[BROKEN] v0.4.1 Pre-release
Pre-release

Don't use it