mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-27 04:07:05 +00:00
* ⚡ perf: Index the Conversation Fetch and Trim the Client Message Projection * ⚡ perf: Memoize the Message Tree per Cache Write * ⚡ perf: Serve Message Reads via the Trimmed Projection and an Ownership Probe * ⚡ perf: Defer Collapsed Disclosure Bodies Until First Expansion * ⚡ perf: Progressively Mount Long Threads from the Scroll Anchor * 🩹 fix: Address Codex Findings on Retention, Anchoring, and Cache Bounds * 🩹 fix: Poll the Oversized Export Precondition Through the Progressive Mount * 🩹 fix: Keep Video Results in the Client Message Projection
14 lines
422 B
JavaScript
14 lines
422 B
JavaScript
const {
|
|
GenerationJobManager,
|
|
createMessageRequestMiddleware,
|
|
isPendingActionStale,
|
|
} = require('@librechat/api');
|
|
const { logger } = require('@librechat/data-schemas');
|
|
const { getConvoOwnership } = require('~/models');
|
|
|
|
module.exports = createMessageRequestMiddleware({
|
|
getConvo: getConvoOwnership,
|
|
getJob: (conversationId) => GenerationJobManager.getJob(conversationId),
|
|
isPendingActionStale,
|
|
logger,
|
|
});
|