chore: await before returning

This commit is contained in:
Cohee
2025-01-07 20:07:41 +02:00
parent 81841ca2a6
commit d7b3a56c3d

View File

@ -251,7 +251,7 @@ export async function countWebLlmTokens(text) {
return response;
} catch (error) {
// Fallback to using current model's tokenizer
return getTokenCountAsync(text);
return await getTokenCountAsync(text);
}
}