mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 14:33:38 +00:00
* fix: Count Memory Tokens After the o200k Encoding Loads Memory create and update routes, the by-id handler, and the memory agent's set_memory tool persisted Tokenizer.getTokenCount, which returns the UTF-8 byte length for long text while o200k_base is still loading. Await countTokens instead so the stored tokenCount is the real count. Related to #17842 * test: Cover Memory Token Counts Saved Before the Tokenizer Loads * test: Mock countTokens in Memory Tool and Route Specs |
||
|---|---|---|
| .. | ||
| app/clients | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| recover-skill-upload.js | ||
| typedefs.js | ||