feat(config): expose context_window in example config and web UI

Add context_window to config.example.json, the web configuration page
(form model, input field, save handler), and i18n strings (en/zh).
The field is optional — leaving it empty falls back to the 4x max_tokens
heuristic.
This commit is contained in:
xiaoen
2026-03-13 15:16:57 +08:00
parent d5fdd5ebd2
commit e35906bb14
6 changed files with 26 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
"restrict_to_workspace": true,
"model_name": "gpt-5.4",
"max_tokens": 8192,
"context_window": 131072,
"temperature": 0.7,
"max_tool_iterations": 20,
"summarize_message_threshold": 20,