mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-24 17:02:36 +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 |
||
|---|---|---|
| .. | ||
| authorization.spec.ts | ||
| authorization.ts | ||
| config.spec.ts | ||
| config.ts | ||
| handlers.spec.ts | ||
| handlers.ts | ||
| index.ts | ||
| protection.spec.ts | ||
| protection.ts | ||