mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-11 08:43:48 +00:00
* perf(api): reduce first-load database round trips * docs: move agent guidance to claude docs * refactor(api): move message validation into api package * fix(api): narrow active generation job lookup * fix(api): preserve omitted source identity
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
const {
|
|
GenerationJobManager,
|
|
createMessageRequestMiddleware,
|
|
isPendingActionStale,
|
|
} = require('@librechat/api');
|
|
const { logger } = require('@librechat/data-schemas');
|
|
const { getConvo } = require('~/models');
|
|
|
|
module.exports = createMessageRequestMiddleware({
|
|
getConvo,
|
|
getJob: (conversationId) => GenerationJobManager.getJob(conversationId),
|
|
isPendingActionStale,
|
|
logger,
|
|
});
|