diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index 29f51ba..130f605 100644 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -247,7 +247,8 @@ async def process_messages(group_id: int): state.history.append({"role": "user", "content": content}) state.past_events.clear() - if not state.output_reasoning_content: + reply = "" + if state.output_reasoning_content: reasoning_content = getattr( response.choices[0].message, "reasoning_content", None )