LibreChat/packages/api
Danny Avila 0d51d1dc08
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-16 09:07:59 -04:00
..
src refactor(agents): token counting for media content in messages 2026-03-16 09:07:59 -04:00
.gitignore
babel.config.cjs
jest.config.mjs 🛂 fix: MCP OAuth Race Conditions, CSRF Fallback, and Token Expiry Handling (#12171) 2026-03-10 21:15:01 -04:00
package.json 🗂️ refactor: Migrate S3 Storage to TypeScript in packages/api (#11947) 2026-03-16 08:21:27 -04:00
rollup.config.js
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.spec.json