0.0.16 • Published 11 months ago

aisbreaker-api v0.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

AIs Breaker API

Introduction

AIsBreaker provides an easy-to-use and service-agnostic API to access different AI services (like OpenAI/ChatGPT API, Open-Assistant API, Google Bart API and many more) in a uniform way. More details: AIsBreaker.org

This repo contains the AIsBreaker API/SDK for NodeJS/TypeScript/JavaScript.

Run a simple Test

Steps:

# install dependencies
npm install

# set environment: access key for OpenAI
export OPENAI_API_KEY="XYZ..."
# or from a script
. ../../setenv.sh

# run the simple test chat
./start.sh

Build and Publish an npm Package

Steps:

# adjust/increase version in package.json (must be unique)
vi package.json

# build (compile TypeScript)
npm run build

# publish to npmjs.com
npm login
    # login in webbrowser as user aisbreaker

npm publish

Test the package installation

# new dir
mkdir tmp
cd tmp/

# set environment: access key for OpenAI
export OPENAI_API_KEY="XYZ..."
# or from a script
. ../../setenv.sh

# start from npm repo
npx aisbreaker-api
0.0.16

11 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

12 months ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago