diff --git a/db/prompt_store.py b/db/prompt_store.py index c5cd057..5433102 100644 --- a/db/prompt_store.py +++ b/db/prompt_store.py @@ -43,9 +43,11 @@ def initialize_prompt_store(db: TinyDB) -> None: """ # 检查数据库是否为空 if not db.all(): # 如果数据库中没有数据 - db.insert(promptTempleta(name="default", - description="默认提示词模板", - content="""项目名为:{ project_name } + db.insert(promptTempleta( + id=0, + name="default", + description="默认提示词模板", + content="""项目名为:{ project_name } 请依据以下该项目官方文档的部分内容,创造合适的对话数据集用于微调一个了解该项目的小模型的语料,要求兼顾文档中间尽可能多的信息点,使用中文 文档节选:{ content } 按照如下json格式返回:{ json }""").model_dump())