mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 15:07:42 +01:00
Add debug func to restart onboarding
This commit is contained in:
parent
e3a6f01fdc
commit
61515c249f
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user