1.1.5 • Published 1 year ago

foxgpt v1.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Requirements

This package requires a FoxGPT key, which is acquired through the FoxGPT Discord server.

npm.io

Getting started

Importing

This package is a ES6 module, so heres how to import it on both CommonJS and ES6!

// CommonJS
const { init } = await import('foxgpt')
// ES6
import { init } from 'foxgpt'

Now that we have imported the package, initialize it using your FoxGPT key

const fox = new init(key)

Using the package

As for language models, this package currently supports GPT 3.5 completion and GPT 4.0 completion. GPT 4.0 requires a donation of $5.00 USD to gain access to it, please ask the FoxGPT owner for more details. This also supports DALL·E 2.

Here's how to use the chat completion:

fox.gpt3(prompt)
// or provide the context
fox.gpt3([{ role:  "user", content:  "Hello ChatGPT!" }])

---------------------------------------------------------------

fox.gpt4(prompt)
// or provide the context
fox.gpt4([{ role:  "user", content:  "Hello ChatGPT!" }])

Image Generation (DALL·E 2):

fox.createImage(prompt, amount)
// Returns an array of urls
// If amount is not given, it will default to 1 image

You can use the official OpenAI docs for additional info!

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

2.0.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago