fix: auto-fix code issues (cron)
- 修复重复导入/字段 - 修复异常处理 - 修复PEP8格式问题 - 添加类型注解
This commit is contained in:
@@ -163,8 +163,6 @@ class KnowledgeReasoner:
|
||||
|
||||
content = await self._call_llm(prompt, temperature=0.3)
|
||||
|
||||
import re
|
||||
|
||||
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
|
||||
|
||||
if json_match:
|
||||
@@ -217,8 +215,6 @@ class KnowledgeReasoner:
|
||||
|
||||
content = await self._call_llm(prompt, temperature=0.3)
|
||||
|
||||
import re
|
||||
|
||||
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
|
||||
|
||||
if json_match:
|
||||
@@ -271,8 +267,6 @@ class KnowledgeReasoner:
|
||||
|
||||
content = await self._call_llm(prompt, temperature=0.3)
|
||||
|
||||
import re
|
||||
|
||||
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
|
||||
|
||||
if json_match:
|
||||
@@ -325,8 +319,6 @@ class KnowledgeReasoner:
|
||||
|
||||
content = await self._call_llm(prompt, temperature=0.4)
|
||||
|
||||
import re
|
||||
|
||||
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
|
||||
|
||||
if json_match:
|
||||
@@ -474,8 +466,6 @@ class KnowledgeReasoner:
|
||||
|
||||
content = await self._call_llm(prompt, temperature=0.3)
|
||||
|
||||
import re
|
||||
|
||||
json_match = re.search(r"\{{.*?\}}", content, re.DOTALL)
|
||||
|
||||
if json_match:
|
||||
|
||||
Reference in New Issue
Block a user