mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-09 12:43:35 +00:00
reasoning_content and extra_content were accidentally dropped from _ALLOWED_MSG_KEYS. Also fix session/manager.py to include reasoning_content when building LLM messages from session history, so the field is not lost across turns. Without this fix, providers such as Kimi, emit reasoning_content in assistant messages will have it stripped on the next request, breaking multi-turn thinking mode. Fixes: https://github.com/HKUDS/nanobot/issues/2777 Signed-off-by: Lingao Meng <menglingao@xiaomi.com>