mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:00:25 +08:00
A thinking model can spend 16k tokens before it writes any code, so the visualize default is now 32768. Sent unchanged that would be rejected by models whose output stops lower (gpt-4o and gpt-4o-mini at 16384) and could overflow a small local context window, so every request now carries min(budget, the model's known output limit, half the configured context window). The cap lives in get_token_limit_kwargs, so it applies to every caller; BaseAgent and the agentic loop pass the configured window.