mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-06 03:03:36 +00:00
The test test_openai_compat_strips_message_level_reasoning_fields was added in fbedf7a and incorrectly asserted that reasoning_content and extra_content should be stripped from messages. This contradicts the intent of b5302b6 which explicitly added these fields to _ALLOWED_MSG_KEYS to preserve them through sanitization. Rename the test and fix assertions to match the original design intent: reasoning_content and extra_content at message level should be preserved, and extra_content inside tool_calls should also be preserved. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>