mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-07 23:18:26 +00:00
An attachment accepted on one turn whose tool never ran carried neither an embedding nor a code reference, and every hydration query matches only files that already have one: getToolFilesByIds requires embedded, getUserCodeFiles requires a codeEnvRef. The file was therefore absent from later turns entirely, so asking to search or run code against it found nothing. Hydrating it back into attachments would have re-delivered earlier uploads to the model on every turn, so provisioning and delivery are now separate inputs: deferred records are fetched by their own query and reach the provisioning computation alone, never the returned attachments. Also provisions for the host create_file tool, whose name is distinct from write_file, and falls back to the primary context when a tool batch omits its agent id, matching what the tool loaders already do. |
||
|---|---|---|
| .. | ||
| 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 | ||