LocalWebAgent / js /config-defaults.js
ereniko's picture
v0.4.1: Markdown tables, larger configurable context, README update
ff322b9 unverified
Raw History Blame Contribute Delete
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
};