数据库模型字段添加;数据模型添加;utils_message传参控制

This commit is contained in:
UnCLAS-Prommer
2026-03-06 22:45:47 +08:00
parent baae2df154
commit c2b75a03d7
4 changed files with 68 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ class Jargon(SQLModel, table=True):
count: int = Field(default=0) # 使用次数
is_jargon: Optional[bool] = Field(default=True) # 是否为黑话False表示为白话
is_global: bool = Field(default=False) # 是否为全局黑话
is_complete: bool = Field(default=False) # 是否为已经完成全部推断count > 100后不再推断
inference_with_context: Optional[str] = Field(default=None, nullable=True) # 带上下文的推断结果JSON格式
inference_with_content_only: Optional[str] = Field(default=None, nullable=True) # 只基于词条的推断结果JSON格式