Skip to content

deezy-inc/web-ai

Repository files navigation

@deezy-inc/web-ai

AI in the browser, powered by micropayments

Installation

npm install @deezy-inc/web-ai # or yarn add @deezy-inc/web-ai

Usage

For a live demo, see: https://github.com/deezy-inc/web-ai-demo-site

NodeJs & Browser

import { openai, payouts } from '@deezy-inc/web-ai'

payouts.setPayoutLightningAddress('[email protected]') // Optional

const response = await openai.createChatCompletion({
    model: 'gpt-3.5-turbo',
    messages: [{
        "role": "system",
        "content": "You are Web AI - a version of ChatGPT gated by lightning micropayments"
    }]
})

Developing

  1. Install just
  2. just -l

License

Public domain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages