mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-30 19:31:32 +00:00
🪣 fix: Cap Context Projection Workload Before Tokenization (#13910)
* fix: bound context projection workload * fix: Address context projection CI failures * fix: Bound context projection database reads * fix: Sort projection spec imports * fix: Cap projection body reads with stats
This commit is contained in:
parent
2f800c5b52
commit
77854decdf
8 changed files with 606 additions and 18 deletions
|
|
@ -18,7 +18,11 @@ async function contextProjectionController(req, res) {
|
|||
return;
|
||||
}
|
||||
const projection = await resolveContextProjection(
|
||||
{ userId: req.user?.id, getMessages: db.getMessages },
|
||||
{
|
||||
userId: req.user?.id,
|
||||
getMessages: db.getMessages,
|
||||
getMessageTextStats: db.getMessageTextStats,
|
||||
},
|
||||
params,
|
||||
);
|
||||
res.json(projection ?? null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue