Add debug func to restart onboarding

This commit is contained in:
Cohee 2024-09-01 23:49:56 +03:00
parent e3a6f01fdc
commit 61515c249f

View File

@ -8931,6 +8931,12 @@ function addDebugFunctions() {
await reloadCurrentChat();
};
registerDebugFunction('forceOnboarding', 'Force onboarding', 'Forces the onboarding process to restart.', async () => {
firstRun = true;
await saveSettings();
location.reload();
});
registerDebugFunction('backfillTokenCounts', 'Backfill token counters',
`Recalculates token counts of all messages in the current chat to refresh the counters.
Useful when you switch between models that have different tokenizers.