0.1.19 • Published 3 months ago

aisbreaker-api-js v0.1.19

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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_chat.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.1.19

3 months ago

0.1.18

4 months ago

0.1.17

4 months ago

0.1.16

4 months ago

0.1.15

5 months ago

0.1.14

5 months ago

0.1.12

5 months ago

0.1.13

5 months ago

0.1.11

5 months ago

0.1.10

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

8 months ago

0.0.42

8 months ago

0.0.41

9 months ago

0.0.40

10 months ago

0.0.35

10 months ago

0.0.34

10 months ago

0.0.33

10 months ago

0.0.32

10 months ago

0.0.31

10 months ago

0.0.30

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.19

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago