/poe.js

A package to interact with poe.com

Primary LanguageTypeScriptApache License 2.0Apache-2.0

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');
})();