gearmind-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i gearmind-sdk

Weekly Downloads

4

Version

0.0.1

License

ISC

Unpacked Size

6.91 kB

Total Files

7

Last publish

Collaborators

  • mengsokool