mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-06 22:49:29 +00:00
Destination and acceptability were decided by a block of new policy in the legacy file service: promote a text-routed upload to context, find a tool that could consume one kept off the model path, refuse one that nothing could read or that would land on no agent resource. That is backend policy rather than wiring, and the workspace rules put it elsewhere. It now lives in data-provider as one pure function, next to the delivery-path resolution it follows. That is also the only home reachable from here: the file service cannot import from packages/api, because a suite mocks that package with an explicit allowlist and any real import becomes undefined under test. The rules are provider-agnostic policy either way, so this is where they belong rather than merely where they fit. The earlier deduplication of the shared size allowance covered the deferred filter and not the persistent screening, which recomputed the budget from both raw arrays and could silently drop a persistent file that fits. Both now use one accounting that counts a file appearing in several sets once. |
||
|---|---|---|
| .. | ||
| controllers | ||
| middleware | ||
| routes | ||
| services | ||
| utils | ||
| cleanup.js | ||
| csp.spec.js | ||
| experimental.js | ||
| experimental.spec.js | ||
| index.js | ||
| index.metrics.spec.js | ||
| index.spec.js | ||
| socialLogins.js | ||
| socialLogins.spec.js | ||
| telemetry.js | ||
| telemetry.spec.js | ||