Summarise and translate
Two of the most common uses, including Indian languages.
Summarise
summarise.js
const reply = await charge.ai.chat('Summarise this in three bullet points:\n\n' + longText) Translate
Say which language you want, and pass lang so the reply is checked for that language.
translate.js
const reply = await charge.ai.chat('Translate to Hindi: Your order is out for delivery.', { lang: 'hi' }) Language codes include hi (Hindi), ta (Tamil), te (Telugu), kn (Kannada), ml (Malayalam), bn (Bengali), mr (Marathi), gu (Gujarati), pa (Punjabi) and en (English).
Read next
Still stuck? Talk to us and we'll help.