diff --git a/AUTO_CODE_REVIEW_REPORT.md b/AUTO_CODE_REVIEW_REPORT.md index cfa0cd8..351e063 100644 --- a/AUTO_CODE_REVIEW_REPORT.md +++ b/AUTO_CODE_REVIEW_REPORT.md @@ -145,3 +145,8 @@ - `/root/.openclaw/workspace/projects/insightflow/auto_code_fixer.py:11` - 未使用的导入: Any - `/root/.openclaw/workspace/projects/insightflow/backend/workflow_manager.py:16` - 未使用的导入: urllib.request - `/root/.openclaw/workspace/projects/insightflow/backend/plugin_manager.py:14` - 未使用的导入: urllib.request + + +## Git 提交结果 + +✅ 提交并推送成功 diff --git a/backend/llm_client.py b/backend/llm_client.py index 72256f4..68fbf9f 100644 --- a/backend/llm_client.py +++ b/backend/llm_client.py @@ -119,8 +119,6 @@ class LLMClient: messages = [ChatMessage(role="user", content=prompt)] content = await self.chat(messages, temperature=0.1) - import re - json_match = re.search(r"\{{.*?\}}", content, re.DOTALL) if not json_match: return [], [] diff --git a/backend/main.py b/backend/main.py index 5315917..5785755 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1110,8 +1110,6 @@ def extract_entities_with_llm(text: str) -> tuple[list[dict], list[dict]]: result = response.json() content = result["choices"][0]["message"]["content"] - import re - json_match = re.search(r"\{{.*?\}}", content, re.DOTALL) if json_match: data = json.loads(json_match.group())