| 8931 | 8931 | await reloadCurrentChat(); |
| 8932 | 8932 | }; |
| 8933 | 8933 | |
| 8934 | + registerDebugFunction('forceOnboarding', 'Force onboarding', 'Forces the onboarding process to restart.', async () => { |
| 8935 | + firstRun = true; |
| 8936 | + await saveSettings(); |
| 8937 | + location.reload(); |
| 8938 | + }); |
| 8939 | + |
| 8934 | 8940 | registerDebugFunction('backfillTokenCounts', 'Backfill token counters', |
| 8935 | 8941 | `Recalculates token counts of all messages in the current chat to refresh the counters. |
| 8936 | 8942 | Useful when you switch between models that have different tokenizers. |