Download ui/web/src/lib/chatPresets.js from localailb/assistant: direct link, hf CLI and curl.
- Browser
- Download file 2.15 kB
-
https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/lib/chatPresets.js
- Command line
-
hf download hf://spaces/localailb/assistant/ui/web/src/lib/chatPresets.js
-
curl -L -o chatPresets.js https://huggingface.co/spaces/localailb/assistant/resolve/main/ui/web/src/lib/chatPresets.js
2.15 kB
| // Shared preset option sets for the chat tabs' Generation Settings | |
| // controls β the "category selection" replacement for the old raw number | |
| // inputs (step budgets / whole-run timeouts / per-step exec timeouts). | |
| // Every option is { value, labelKey } β the label resolves through the | |
| // bilingual t() store (numbers are plain digits, language-neutral); the | |
| // AUTO option (value null) is rendered separately by PresetSelect so it | |
| // can show the control's real default. | |
| /** Per-step code-execution timeout presets (seconds) β shared by every | |
| * agentic tab's "Exec timeout" control. AUTO (null) = the tab's own | |
| * factory default. Runs up to 10 minutes. */ | |
| export const EXEC_TIMEOUT_OPTIONS = [ | |
| { value: 30, labelKey: "exec_timeout_30s" }, | |
| { value: 60, labelKey: "exec_timeout_60s" }, | |
| { value: 120, labelKey: "exec_timeout_120s" }, | |
| { value: 300, labelKey: "exec_timeout_300s" }, | |
| { value: 600, labelKey: "exec_timeout_600s" }, | |
| ]; | |
| /** Manager-agent step-budget presets (General / RAG / Deep Research / | |
| * Data): 1β30, common values only β a category pick, not a free number. */ | |
| export const STEP_OPTIONS = [2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30].map((n) => ({ | |
| value: n, | |
| labelKey: String(n), | |
| })); | |
| /** Sub-agent step-budget presets (RAG searcher / DR search / Data | |
| * worker): 1β15. */ | |
| export const SUBSTEP_OPTIONS = [2, 3, 4, 5, 6, 8, 10, 12, 15].map((n) => ({ | |
| value: n, | |
| labelKey: String(n), | |
| })); | |
| /** Whole-run generation-timeout presets (seconds) β General / RAG / | |
| * Vision / Deep Research's "Timeout" control. AUTO (null) = no explicit | |
| * deadline (web_no_limit). Covers the common durations up to the 5-hour | |
| * max. */ | |
| export const RUN_TIMEOUT_OPTIONS = [ | |
| { value: 60, labelKey: "exec_timeout_60s" }, | |
| { value: 120, labelKey: "exec_timeout_120s" }, | |
| { value: 300, labelKey: "exec_timeout_300s" }, | |
| { value: 600, labelKey: "exec_timeout_600s" }, | |
| { value: 900, labelKey: "exec_timeout_900s" }, | |
| { value: 1800, labelKey: "exec_timeout_1800s" }, | |
| { value: 3600, labelKey: "exec_timeout_3600s" }, | |
| { value: 7200, labelKey: "exec_timeout_7200s" }, | |
| { value: 18000, labelKey: "exec_timeout_18000s" }, | |
| ]; | |