mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
chore: await before returning
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user