mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-19 22:20:30 +00:00
20d0313d0c
The streaming path already honored a max_tokens cap from the active profile's config.yaml, but there was no UI to manage it. Settings > Preferences now has a "Max output tokens" field that writes a root-level max_tokens override through the profile config (not settings.json, which the streaming worker never reads for this), preserving unrelated YAML keys under _cfg_lock. Blank clears the override so agent.max_tokens fallback resumes; get_max_tokens_status() surfaces root / effective / fallback so the field shows what a new turn would use. Co-authored-by: rodboev <rodboev@users.noreply.github.com>