This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// set type: module in package.json to use import statements | |
import Keyv from 'keyv' // https://www.npmjs.com/package/keyv | |
import { ChatGPTAPI } from "chatgpt"; // https://www.npmjs.com/package/chatgpt | |
// Set REDIS_URL to your Redis URL | |
const messageStore = new Keyv(`sqlite://history.db`) | |
import { v4, validate } from 'uuid' | |
/** |
OlderNewer