Delayed tokenizers initialization

This commit is contained in:
Cohee
2023-10-25 00:32:49 +03:00
parent 3edc456fe7
commit c2ba3a773a
2 changed files with 4 additions and 3 deletions

View File

@ -439,7 +439,7 @@ export function decodeTextTokens(tokenizerType, ids) {
}
}
jQuery(async () => {
export async function initTokenizers() {
await loadTokenCache();
registerDebugFunction('resetTokenCache', 'Reset token cache', 'Purges the calculated token counts. Use this if you want to force a full re-tokenization of all chats or suspect the token counts are wrong.', resetTokenCache);
});
}