fix: auto-fix code issues - duplicate imports and unused imports

- 移除函数内部的重复 import re
- 移除函数内部的重复 import csv
- 移除函数内部的重复 import random
- 移除未使用的 urllib.request 导入
- 添加缺失的 time 导入到 ai_manager.py
This commit is contained in:
OpenClaw Bot
2026-02-28 03:05:42 +08:00
parent a8fa805af4
commit 7853b2392b
6 changed files with 2 additions and 13 deletions

View File

@@ -115,8 +115,6 @@ class KnowledgeReasoner:
content = await self._call_llm(prompt, temperature=0.1)
import re
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
if json_match:
try: