LibreChat/api/server
Danny Avila 9ab29a9b29
refactor(agents): token counting for media content in messages
Introduced a new method to estimate token costs for image and document blocks in messages, improving the accuracy of token counting. This enhancement ensures that media content is properly accounted for, particularly for the Claude model, by integrating additional token estimation logic for various content types. Updated the token counting function to utilize this new method, enhancing overall reliability and functionality.
2026-03-15 14:26:44 -04:00
..
controllers refactor(agents): token counting for media content in messages 2026-03-15 14:26:44 -04:00
middleware fix: circular dependency of ~/models 2026-03-11 13:17:04 -04:00
routes fix: circular dependency of ~/models 2026-03-11 13:17:04 -04:00
services chore: imports/types 2026-03-10 23:25:44 -04:00
utils 📦 refactor: Consolidate DB models, encapsulating Mongoose usage in data-schemas (#11830) 2026-03-10 23:15:53 -04:00
cleanup.js 🪣 fix: Prevent Memory Retention from AsyncLocalStorage Context Propagation (#11942) 2026-02-25 17:41:23 -05:00
experimental.js 📦 refactor: Consolidate DB models, encapsulating Mongoose usage in data-schemas (#11830) 2026-03-10 23:15:53 -04:00
index.js 📜 feat: Implement System Grants for Capability-Based Authorization (#11896) 2026-03-10 23:15:54 -04:00
index.spec.js 🚦 fix: 404 JSON Responses for Unmatched API Routes (#11976) 2026-02-27 22:49:54 -05:00
socialLogins.js 🔒 fix: Secure Cookie Localhost Bypass and OpenID Token Selection in AuthService (#11782) 2026-02-13 10:35:51 -05:00