quora-poe.js

1.0.3-alpha.1 • Public • Published

quora-poe.js

A package to interact with poe.com. Based on the work of (muharamdani)[https://github.com/muharamdani]

Installation

npm install quora-poe.js

Usage

Available models: gpt-4, chatgpt, sage, claude+, claude, dragonfly

One message:

import Poe from 'quora-poe.js';
(async () => {
  const bot = new Poe();
  await bot.start();
  let answer = await bot.ask('Hello!', 'gpt-4');
})();

Conversation:

import Poe from 'quora-poe.js';
(async () => {
  const bot = new Poe();
  await bot.start();
  let conversation = [
    {
      role: 'user',
      content: 'My name is John',
    },
    {
      role: 'ai',
      content:
        'Hello John! How can I help you today? If you have any questions or need assistance, please feel free to ask.Hello John! How can I help you today? If you have any questions or need assistance, please feel free to ask.',
    },
  ];
  let answer = await bot.send(conversation, 'gpt-4');
})();

Package Sidebar

Install

npm i quora-poe.js

Weekly Downloads

3

Version

1.0.3-alpha.1

License

Apache-2.0

Unpacked Size

54.3 kB

Total Files

43

Last publish

Collaborators

  • mrlol