mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 04:03:45 +08:00
Previously, an agent in agentic execution mode with an empty `max_turn_tokens` crashed with "comparison of Integer with nil failed" because the token-budget loop compared the running token count against a nil budget. This change defaults the turn budget to half of the model's context window when `max_turn_tokens` is empty, so agentic agents keep working without an explicit budget. |
||
|---|---|---|
| .. | ||
| jobs/regular | ||
| entry_point_spec.rb | ||
| playground_spec.rb | ||
| site_setting_extension_spec.rb | ||
| stream_reply_custom_tools_session_spec.rb | ||