mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Convert tiktoken file loading to async (#18756)
This commit is contained in:
@@ -136,7 +136,7 @@ export async function estimateTokensFromStringList(
|
||||
return 0;
|
||||
}
|
||||
|
||||
const encoder = encodingForModel(model);
|
||||
const encoder = await encodingForModel(model);
|
||||
const encodedListLength = await Promise.all(
|
||||
list.map(async (text) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user