添加决策器自定义提示词功能,允许用户启用并设置自定义提示词内容

This commit is contained in:
minecraft1024a
2025-08-13 19:11:30 +08:00
committed by Windpicker-owo
parent e6f860ad3f
commit 6a1e86cf35
3 changed files with 18 additions and 14 deletions

View File

@@ -214,6 +214,12 @@ class ChatConfig(ConfigBase):
group_chat_mode: Literal["auto", "normal", "focus"] = "auto"
"""群聊聊天模式设置auto-自动切换normal-强制普通模式focus-强制专注模式"""
planner_custom_prompt_enable: bool = False
"""是否启用决策器自定义提示词"""
planner_custom_prompt_content: str = ""
"""决策器自定义提示词内容仅在planner_custom_prompt_enable为True时生效"""
def get_current_talk_frequency(self, chat_stream_id: Optional[str] = None) -> float:
"""