Add debug func to restart onboarding

61515c249f7577a44bfe4d619278ea46ddd8eb66

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

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