Spaces:
Running
Running
Download js/config-defaults.js from ereniko/LocalWebAgent: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/spaces/ereniko/LocalWebAgent/resolve/main/js/config-defaults.js
- Command line
-
hf download hf://spaces/ereniko/LocalWebAgent/js/config-defaults.js
-
curl -L -o config-defaults.js https://huggingface.co/spaces/ereniko/LocalWebAgent/resolve/main/js/config-defaults.js
600 Bytes
| // Agent defaults. Kept free of browser APIs so Node tests can import it. | |
| export const DEFAULTS = { | |
| thinking: true, | |
| confirmCommands: false, | |
| maxSteps: 16, | |
| commandTimeoutSec: 90, | |
| maxNewTokens: 2048, | |
| thinkingBudget: 1536, | |
| // How many tokens of conversation the model sees; older tool output is trimmed beyond it. | |
| // The local default is moderate because long prompts are slow and use GPU memory; | |
| // API models usually have 128k+ windows. | |
| contextLocalTokens: 32768, | |
| contextApiTokens: 128000, | |
| contextBudgetTokens: 32768, // the active budget; main.js sets it from the two above | |
| }; | |