mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
22 lines
899 B
JavaScript
22 lines
899 B
JavaScript
/**
|
||
* Common debounce timeout values to use with `debounce` calls.
|
||
* @enum {number}
|
||
*/
|
||
export const debounce_timeout = {
|
||
/** [100 ms] For ultra-fast responses, typically for keypresses or executions that might happen multiple times in a loop or recursion. */
|
||
quick: 100,
|
||
/** [200 ms] Slightly slower than quick, but still very responsive. */
|
||
short: 200,
|
||
/** [300 ms] Default time for general use, good balance between responsiveness and performance. */
|
||
standard: 300,
|
||
/** [1.000 ms] For situations where the function triggers more intensive tasks. */
|
||
relaxed: 1000,
|
||
/** [5 sec] For delayed tasks, like auto-saving or completing batch operations that need a significant pause. */
|
||
extended: 5000,
|
||
};
|
||
|
||
/**
|
||
* Custom boundary for splitting the text between the model's reasoning and the actual response.
|
||
*/
|
||
export const THINK_BREAK = '##<23>THINK_BREAK<41>##';
|