From 72bcbb95ea4acfefcf828417a2ba5aa6555b77c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com>
Date: Mon, 28 Jul 2025 19:26:31 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DLLMRequest=E7=B1=BB?=
=?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=80=9D=E7=BB=B4=E9=93=BE=E6=8F=90=E5=8F=96?=
=?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=8E=A8=E7=90=86=E5=86=85=E5=AE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/llm_models/utils_model.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/llm_models/utils_model.py b/src/llm_models/utils_model.py
index 8518889ae..7577f5f26 100644
--- a/src/llm_models/utils_model.py
+++ b/src/llm_models/utils_model.py
@@ -311,7 +311,7 @@ class LLMRequest:
"""CoT思维链提取"""
match = re.search(r"(?:)?(.*?)", content, re.DOTALL)
content = re.sub(r"(?:)?.*?", "", content, flags=re.DOTALL, count=1).strip()
- reasoning = match.group(1).strip() if match else ""
+ reasoning = match[1].strip() if match else ""
return content, reasoning
# === 主要API方法 ===