fix: seed脚本去掉KnowledgeStore不支持的category参数
This commit is contained in:
@@ -279,7 +279,7 @@ def main():
|
|||||||
title=risk["title"],
|
title=risk["title"],
|
||||||
content=risk["content"],
|
content=risk["content"],
|
||||||
doc_type=risk["doc_type"],
|
doc_type=risk["doc_type"],
|
||||||
category=risk.get("category"),
|
|
||||||
source=risk.get("source", "BossAi"),
|
source=risk.get("source", "BossAi"),
|
||||||
)
|
)
|
||||||
count += 1
|
count += 1
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ def main():
|
|||||||
title=tmpl["title"],
|
title=tmpl["title"],
|
||||||
content=tmpl["content"],
|
content=tmpl["content"],
|
||||||
doc_type=tmpl["doc_type"],
|
doc_type=tmpl["doc_type"],
|
||||||
category=tmpl.get("category"),
|
|
||||||
source=tmpl.get("source", "BossAi"),
|
source=tmpl.get("source", "BossAi"),
|
||||||
)
|
)
|
||||||
count += 1
|
count += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user