mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 02:05:37 +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. |
||
|---|---|---|
| .. | ||
| chat_streamer.rb | ||
| entry_point.rb | ||
| playground.rb | ||
| post_streamer.rb | ||
| response_http_streamer.rb | ||
| site_settings_extension.rb | ||
| stream_reply_custom_tools_session.rb | ||