|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > LMS. - LM-Studio Commands > NEW: LMS v2.1 Commands - Model Query, Status, and Text Extraction > LMS.SetResilience - Configure Resilience |
Configures retry behavior, fallback options, and backoff timing for LM Studio requests. Useful for improving reliability with slow or unstable connections.
Syntax:
LMS.SetResilience|$$RETRIES|$$FALLBACK[|$$BACKOFF]
Parameters:
$$RETRIES (Number, required) - Number of retry attempts (1-10, default 3).
$$FALLBACK (Number, required) - Enable fallback model (1=yes, 0=no).
$$BACKOFF (Number, optional) - Backoff time in milliseconds (default 350, max 5000).
Examples:
; Standard resilient configuration
LMS.SetResilience|5|1|500
; Quick retries without fallback
LMS.SetResilience|3|0|100
See Also: