Translation source and target
pv-hassam-ullah opened this issue · 3 comments
the translation function does not allow me to specify source and target languages of the text, it only takes the text as a parameter despite the examples in the endpoints documentation showing 'text' , 'source' , 'target' as the three parameters of this function.
Am I missing something here?
https://docs.nlpcloud.com/?javascript#translation
Note: I got this probelm while using the nlpcloud package in my NestJs application
Hello @pv-hassam-ullah thanks, you're absolutely right, it seems that we forgot to include the "source" and "target" parameters as Typescript types.
We just fixed it. Could you please download the latest version and try again?
Looking forward to hearing from you.
Yes absolutely! What you will need to do here is create a discussion history with a specific tone
For example if you want your AI to be aggressive, you should create a discussion history where the AI is aggressive.
Please don't hesitate to contact our support (support@nlpcloud.com) if it's not working as expected!