Add debug func to restart onboarding

61515c249f7577a44bfe4d619278ea46ddd8eb66

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +6 -0Ignore whitespace
public/script.js+6 -0
@@ -8931,6 +8931,12 @@ function addDebugFunctions() {
8931 await reloadCurrentChat();8931 await reloadCurrentChat();
8932 };8932 };
89338933
8934 registerDebugFunction('forceOnboarding', 'Force onboarding', 'Forces the onboarding process to restart.', async () => {
8935 firstRun = true;
8936 await saveSettings();
8937 location.reload();
8938 });
8939
8934 registerDebugFunction('backfillTokenCounts', 'Backfill token counters',8940 registerDebugFunction('backfillTokenCounts', 'Backfill token counters',
8935 `Recalculates token counts of all messages in the current chat to refresh the counters.8941 `Recalculates token counts of all messages in the current chat to refresh the counters.
8936 Useful when you switch between models that have different tokenizers.8942 Useful when you switch between models that have different tokenizers.