This commit is contained in:
春河晴
2025-06-10 16:13:31 +09:00
parent 440e8bf7f3
commit 8d9a88a903
70 changed files with 1598 additions and 1642 deletions

View File

@@ -49,7 +49,7 @@ class IdentityConfig(ConfigBase):
@dataclass
class RelationshipConfig(ConfigBase):
"""关系配置类"""
enable_relationship: bool = True
give_name: bool = False
@@ -58,6 +58,7 @@ class RelationshipConfig(ConfigBase):
build_relationship_interval: int = 600
"""构建关系间隔 单位秒如果为0则不构建关系"""
@dataclass
class ChatConfig(ConfigBase):
"""聊天配置类"""
@@ -222,7 +223,7 @@ class EmojiConfig(ConfigBase):
@dataclass
class MemoryConfig(ConfigBase):
"""记忆配置类"""
enable_memory: bool = True
memory_build_interval: int = 600
@@ -329,6 +330,7 @@ class KeywordReactionConfig(ConfigBase):
if not isinstance(rule, KeywordRuleConfig):
raise ValueError(f"规则必须是KeywordRuleConfig类型而不是{type(rule).__name__}")
@dataclass
class ResponsePostProcessConfig(ConfigBase):
"""回复后处理配置类"""
@@ -461,7 +463,7 @@ class LPMMKnowledgeConfig(ConfigBase):
qa_res_top_k: int = 10
"""QA最终结果的Top K数量"""
@dataclass
class ModelConfig(ConfigBase):