mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +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 |
||
|---|---|---|
| .. | ||
| 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 | ||