This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

pawan_openai
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

/pawan_openai/

    Package Sidebar

    Install

    npm i pawan_openai

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    28.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • alexis06030631