mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 03:05: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. |
||
|---|---|---|
| .. | ||
| ai_bot | ||
| ai_helper | ||
| ai_moderation | ||
| automation | ||
| embeddings | ||
| sentiment | ||
| summarization | ||