mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| callbacks.background.spec.js | ||
| callbacks.js | ||
| client.codeDecision.spec.js | ||
| client.imageDetail.spec.js | ||
| client.js | ||
| client.test.js | ||
| filterAuthorizedTools.spec.js | ||
| openai.js | ||
| protocol.js | ||
| queuedTurns.js | ||
| recordCollectedUsage.spec.js | ||
| request.js | ||
| responses.js | ||
| resume.js | ||
| steer.js | ||
| v1.js | ||
| v1.spec.js | ||