LibreChat/api/server/controllers/agents
Marco Beretta b1cf65c7e9
🗂️ perf: Index Hot Lookups and Project the Remote Models List (#17259)
* perf: Index Hot Lookups and Project the Remote Models List

checkBan reads the KeyvMongo logs collection by key on every request when
bans are enabled, BYOK requests read Key by user and name, and agent tool
loading reads Action by agent_id or assistant_id. None of those fields had
an index, so each read scanned its collection. The Key and Action schemas
gain indexes, and the KeyvMongo store builds a key index on first use
unless the deployment disables auto indexing.

The remote /v1/models routes loaded whole agent documents, including the
unbounded versions history, to read six fields. getAgentModelSummaries
loads only those fields.

* test: Authenticate the Models List Scenarios With an Agent API Key
2026-10-19 21:39:10 +02:00
..
__tests__ 🪙 fix: Price 1-Hour Prompt Cache Writes at the 1-Hour Rate (#17208) 2026-10-17 15:43:57 +02:00
callbacks.background.spec.js
callbacks.js 🪙 fix: Price 1-Hour Prompt Cache Writes at the 1-Hour Rate (#17208) 2026-10-17 15:43:57 +02:00
client.codeDecision.spec.js 🍯 fix: Stop Approval Pauses From Unsealing Code Environments (#15963) 2026-09-15 12:30:37 -04:00
client.imageDetail.spec.js 🖍️ fix: Honor Agent Image Detail Settings (#15407) 2026-08-31 08:34:05 -04:00
client.js 🧬 fix: Skip Re-Embedding Legacy File Search Files After Upgrade (#17206) 2026-10-17 19:19:14 +02:00
client.test.js 🧯 feat: Recover Conversations Whose Attachments Keep Failing (#16965) 2026-10-10 08:43:39 -04:00
filterAuthorizedTools.spec.js 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
openai.js 🗂️ perf: Index Hot Lookups and Project the Remote Models List (#17259) 2026-10-19 21:39:10 +02:00
protocol.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
queuedTurns.js 🍱 fix: Carry Coding Approval Mode With Queued Turns (#16326) 2026-09-25 07:28:43 -04:00
recordCollectedUsage.spec.js 🥢 fix: Fit MCP App Snapshots Within Message Documents (#16299) 2026-10-01 03:46:17 +00:00
request.js 🕶️ fix: Keep Temporary Chats Out of Langfuse (#17202) 2026-10-17 11:57:35 +02:00
responses.js 🗂️ perf: Index Hot Lookups and Project the Remote Models List (#17259) 2026-10-19 21:39:10 +02:00
resume.js 🔗 feat: use LibreChat prompt groups as agent instructions (#16686) 2026-10-04 21:27:26 -04:00
steer.js 📬 feat: Move Agent Queued Turns Server-Side (#15370) 2026-08-30 21:53:58 -04:00
v1.js 🔗 feat: use LibreChat prompt groups as agent instructions (#16686) 2026-10-04 21:27:26 -04:00
v1.spec.js 🔗 feat: use LibreChat prompt groups as agent instructions (#16686) 2026-10-04 21:27:26 -04:00