LibreChat / api /cache /keyvMongo.js
N.Achyuth Reddy
Upload 683 files
9705b6c
raw
history blame contribute delete
264 Bytes
const KeyvMongo = require('@keyv/mongo');
const { MONGO_URI } = process.env ?? {};
const keyvMongo = new KeyvMongo(MONGO_URI, { collection: 'logs' });
keyvMongo.on('error', (err) => console.error('KeyvMongo connection error:', err));
module.exports = keyvMongo;