1.0.4 • Published 9 months ago
trustami-ai v1.0.4
trustami-ai
This repository aims to provide a simple and easy to use connector to the Trustami.AI API.
Installation
npm i trustami-ai
Usage
import { detectLanguage, detectSentiment, summarize } from "trustami-ai";
const result = await detectLanguage("YOUR_TOKEN_HERE", "This is a test text. It is used to test the Trustami.AI API.");
console.log(`The text language is "${result.language}".`); // The text language is "en".