gearmind-sdk
v0.0.1
Published
A JavaScript/TypeScript SDK for interacting with the GearMind API.
Downloads
145
Readme
GearMind SDK
A JavaScript/TypeScript SDK for interacting with the GearMind API.
Installation
npm install gearmind-sdk
Usage
import { GearMindSDK } from 'gearmind-sdk';
const sdk = new GearMindSDK({ apiKey: 'YOUR_API_KEY' });
async function chatWithGearMind() {
const messages = [
{ role: 'user', content: 'Hello' }
];
try {
const response = await sdk.chat(messages);
console.log(response);
} catch (error) {
console.error('An error occurred:', error);
}
}
chatWithGearMind();