feat(chat): add force_reasoning flag for chat model selection

This commit is contained in:
zihanjian
2026-01-01 15:00:52 +08:00
parent dd909cb83a
commit 8b5dfa9713
2 changed files with 24 additions and 6 deletions

View File

@@ -175,7 +175,10 @@ def handle_chitchat(ctx: 'MessageContext', match: Optional[Match]) -> bool:
tools = None
tool_handler = None
if ctx.robot and getattr(ctx.robot, 'message_summary', None):
# 插嘴模式下不使用 function call减少 token 消耗
is_auto_random_reply = getattr(ctx, 'auto_random_reply', False)
if ctx.robot and getattr(ctx.robot, 'message_summary', None) and not is_auto_random_reply:
chat_id = ctx.get_receiver()
message_summary = ctx.robot.message_summary