Installation
Install the SDK using your favorite package manager.Pin the version in your
package.json
to avoid unexpected breaking changes.Integrate the TypeScript/JavaScript SDK into your application.
npm install secton
package.json
to avoid unexpected breaking changes.import { createClient } from 'secton';
const client = createClient({
apiKey: process.env.SECTON_API_KEY
});
// simple chat
const response = await client.ask('Hello, how are you?');
console.log(response);