phaticusthiccy / CoffeeHouse-JavaScript-API-Wrapper

Official JavaScript API Wrapper for CoffeeHouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoffeeHouse API Wrapper for JavaScript

This is a very simple API Wrapper for the CoffeeHouse API. Using This Library only supports the V1IVA2.0 CoffeeHouse API which is based from this Documentation

Installation

npm i coffeehouse

Lydia Example

const { LydiaAI } = require("coffehouse");

async function speak(apikey, text) {
  const api = new LydiaAI(apikey);
  const session = await api.createSession();
  console.log("Session ID: " + session.id);
  session.think_thought(text).then((data) => console.log(data.output));
}

speak("Your API Key", "Merhaba Dünya");

About

Official JavaScript API Wrapper for CoffeeHouse

License:Other


Languages

Language:JavaScript 100.0%