🤖 自动格式化代码 [skip ci]

pull/937/head
github-actions[bot] 2025-05-12 10:51:16 +00:00
parent 58b6ef05ec
commit 88d2571fc0
1 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,9 @@ class BotConfig:
2 # PFC 聊天消息缓冲数量,有利于使聊天节奏更加紧凑流畅,请根据实际 LLM 响应速度进行调整默认2条
)
api_polling_max_retries: int = 3 # 神秘小功能
rename_person: bool = True # 是否启用改名工具,可以让麦麦对唯一名进行更改,可能可以更拟人地称呼他人,但是也可能导致记忆混淆的问题
rename_person: bool = (
True # 是否启用改名工具,可以让麦麦对唯一名进行更改,可能可以更拟人地称呼他人,但是也可能导致记忆混淆的问题
)
# idle_chat
enable_idle_chat: bool = False # 是否启用 pfc 主动发言
@ -737,9 +739,7 @@ class BotConfig:
"pfc_message_buffer_size", config.pfc_message_buffer_size
)
if config.INNER_VERSION in SpecifierSet(">=1.6.2.3"):
config.rename_person = experimental_config.get(
"rename_person", config.rename_person
)
config.rename_person = experimental_config.get("rename_person", config.rename_person)
def idle_chat(parent: dict):
idle_chat_config = parent["idle_chat"]