foxgpt
v1.1.5
Published
This package requires a FoxGPT key, which is acquired through the FoxGPT Discord server.
Downloads
9
Readme
Requirements
This package requires a FoxGPT key, which is acquired through the FoxGPT Discord server.
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