mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Token Splitter Node): Cache tokenizer JSONs in memory (#17201)
This commit is contained in:
@@ -136,7 +136,7 @@ export async function estimateTokensFromStringList(
|
||||
return 0;
|
||||
}
|
||||
|
||||
const encoder = await encodingForModel(model);
|
||||
const encoder = encodingForModel(model);
|
||||
const encodedListLength = await Promise.all(
|
||||
list.map(async (text) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user