1.1.2 • Published 1 year ago

pawan_openai v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Pawan OpenAi

Requirements

  • An API key To use ChatGPT hosted by Pawan, you can use the following steps:
    1. Join the Discord server.
    2. Get your API key from the #Bot channel by sending /key command.
  • You must define the base path to use the API in the configuration. The base path is https://api.pawan.krd/v1.

Installation

npm install pawan_openai

Usage (See OpenAI API Docs) for more details.

const {OpenAIApi, Configuration} = require('pawan_openai');

const configuration = new Configuration({
	"apiKey": YOUR_PAWAN_API_KEY,
	"basePath": "https://api.pawan.krd/v1"
});

const openai = new OpenAIApi(configuration);

openai.createCompletion({
	model: "davinci-codex",
	prompt: "Say this is a test"
}).then(console.log).catch(console.error);

License

MIT

1.1.2

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago