0.1.19 • Published 1 year ago
aisbreaker-api-js v0.1.19
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
1 year ago
0.1.18
1 year ago
0.1.17
1 year ago
0.1.16
1 year ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.42
2 years ago
0.0.41
2 years ago
0.0.40
2 years ago
0.0.35
2 years ago
0.0.34
2 years ago
0.0.33
2 years ago
0.0.32
2 years ago
0.0.31
2 years ago
0.0.30
2 years ago
0.0.25
2 years ago
0.0.24
2 years ago
0.0.19
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago