better:可通过配置文件自定义 运行处理器
This commit is contained in:
@@ -29,6 +29,7 @@ from src.config.official_configs import (
|
||||
TelemetryConfig,
|
||||
ExperimentalConfig,
|
||||
ModelConfig,
|
||||
FocusChatProcessorConfig,
|
||||
MessageReceiveConfig,
|
||||
)
|
||||
|
||||
@@ -145,6 +146,7 @@ class Config(ConfigBase):
|
||||
message_receive: MessageReceiveConfig
|
||||
normal_chat: NormalChatConfig
|
||||
focus_chat: FocusChatConfig
|
||||
focus_chat_processor: FocusChatProcessorConfig
|
||||
emoji: EmojiConfig
|
||||
expression: ExpressionConfig
|
||||
memory: MemoryConfig
|
||||
|
||||
@@ -151,6 +151,11 @@ class FocusChatConfig(ConfigBase):
|
||||
think_interval: int = 1
|
||||
"""思考间隔(秒)"""
|
||||
|
||||
|
||||
@dataclass
|
||||
class FocusChatProcessorConfig(ConfigBase):
|
||||
"""专注聊天处理器配置类"""
|
||||
|
||||
self_identify_processor: bool = True
|
||||
"""是否启用自我识别处理器"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user