mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add debug func to restart onboarding
This commit is contained in:
@@ -8931,6 +8931,12 @@ function addDebugFunctions() {
|
|||||||
await reloadCurrentChat();
|
await reloadCurrentChat();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
registerDebugFunction('forceOnboarding', 'Force onboarding', 'Forces the onboarding process to restart.', async () => {
|
||||||
|
firstRun = true;
|
||||||
|
await saveSettings();
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
|
||||||
registerDebugFunction('backfillTokenCounts', 'Backfill token counters',
|
registerDebugFunction('backfillTokenCounts', 'Backfill token counters',
|
||||||
`Recalculates token counts of all messages in the current chat to refresh the 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.
|
Useful when you switch between models that have different tokenizers.
|
||||||
|
Reference in New Issue
Block a user