From 78e7ac4e1d145f58ab6fb7218f79e61afc7399c5 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Sat, 15 Feb 2025 17:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20reasoning=20content=20outp?= =?UTF-8?q?ut=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )