feat:私聊单独的上下文和回复频率控制
This commit is contained in:
@@ -56,7 +56,7 @@ BOT_CONFIG_PATH: Path = (CONFIG_DIR / "bot_config.toml").resolve().absolute()
|
||||
MODEL_CONFIG_PATH: Path = (CONFIG_DIR / "model_config.toml").resolve().absolute()
|
||||
LEGACY_ENV_PATH: Path = (PROJECT_ROOT / ".env").resolve().absolute()
|
||||
MMC_VERSION: str = "1.0.0"
|
||||
CONFIG_VERSION: str = "8.9.17"
|
||||
CONFIG_VERSION: str = "8.9.18"
|
||||
MODEL_CONFIG_VERSION: str = "1.14.3"
|
||||
|
||||
logger = get_logger("config")
|
||||
|
||||
@@ -179,6 +179,18 @@ class ChatConfig(ConfigBase):
|
||||
)
|
||||
"""聊天频率,越小越沉默,范围0-1"""
|
||||
|
||||
private_talk_value: float = Field(
|
||||
default=1,
|
||||
ge=0,
|
||||
le=1,
|
||||
json_schema_extra={
|
||||
"x-widget": "slider",
|
||||
"x-icon": "message-circle",
|
||||
"step": 0.1,
|
||||
},
|
||||
)
|
||||
"""私聊聊天频率,越小越沉默,范围0-1"""
|
||||
|
||||
mentioned_bot_reply: bool = Field(
|
||||
default=False,
|
||||
json_schema_extra={
|
||||
@@ -218,6 +230,15 @@ class ChatConfig(ConfigBase):
|
||||
)
|
||||
"""上下文长度"""
|
||||
|
||||
max_private_context_size: int = Field(
|
||||
default=40,
|
||||
json_schema_extra={
|
||||
"x-widget": "input",
|
||||
"x-icon": "layers",
|
||||
},
|
||||
)
|
||||
"""私聊上下文长度"""
|
||||
|
||||
planner_interrupt_max_consecutive_count: int = Field(
|
||||
default=2,
|
||||
ge=0,
|
||||
|
||||
Reference in New Issue
Block a user