guidera
v1.0.0
Published
Node.js client for Tilantra Model Swap Router API (guidera)
Downloads
2
Readme
guidera
Node.js client for the Tilantra Model Swap Router API (guidera)
Installation
npm install guideraUsage
const { Client } = require('guidera');
(async () => {
const client = new Client();
await client.generate('Your prompt here');
})();API
new Client(options)
email(optional): stringpassword(optional): stringauthToken(optional): stringapiBaseUrl(optional): string (default: http://139.59.5.84)
client.login()
Logs in and stores the JWT token.
client.generate(prompt, prefs?, cpTradeoffParameter?, complianceEnabled?, stream?)
Generates a response from the backend and prints it.
client.getSuggestions(prompt)
Returns a suggestion for the given prompt.
