feat;现在只需要activation_type字段
This commit is contained in:
@@ -10,8 +10,7 @@
|
|||||||
"license": "GPL-v3.0-or-later",
|
"license": "GPL-v3.0-or-later",
|
||||||
|
|
||||||
"host_application": {
|
"host_application": {
|
||||||
"min_version": "0.8.0",
|
"min_version": "0.8.0"
|
||||||
"max_version": "0.8.0"
|
|
||||||
},
|
},
|
||||||
"homepage_url": "https://github.com/MaiM-with-u/maibot",
|
"homepage_url": "https://github.com/MaiM-with-u/maibot",
|
||||||
"repository_url": "https://github.com/MaiM-with-u/maibot",
|
"repository_url": "https://github.com/MaiM-with-u/maibot",
|
||||||
|
|||||||
@@ -160,8 +160,9 @@ class ActionModifier:
|
|||||||
random.shuffle(actions_to_check)
|
random.shuffle(actions_to_check)
|
||||||
|
|
||||||
for action_name, action_info in actions_to_check:
|
for action_name, action_info in actions_to_check:
|
||||||
activation_type = "focus_activation_type"
|
activation_type = action_info.get("activation_type", "")
|
||||||
activation_type = action_info.get(activation_type, "always")
|
if not activation_type:
|
||||||
|
activation_type = action_info.get("focus_activation_type", "")
|
||||||
|
|
||||||
if activation_type == "always":
|
if activation_type == "always":
|
||||||
continue # 总是激活,无需处理
|
continue # 总是激活,无需处理
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class ActionPlanner:
|
|||||||
|
|
||||||
if action == "no_action":
|
if action == "no_action":
|
||||||
reasoning = "normal决定不使用额外动作"
|
reasoning = "normal决定不使用额外动作"
|
||||||
elif action not in current_available_actions:
|
elif action != "no_reply" and action != "reply" and action not in current_available_actions:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"{self.log_prefix}LLM 返回了当前不可用或无效的动作: '{action}' (可用: {list(current_available_actions.keys())}),将强制使用 'no_reply'"
|
f"{self.log_prefix}LLM 返回了当前不可用或无效的动作: '{action}' (可用: {list(current_available_actions.keys())}),将强制使用 'no_reply'"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
"license": "GPL-v3.0-or-later",
|
"license": "GPL-v3.0-or-later",
|
||||||
|
|
||||||
"host_application": {
|
"host_application": {
|
||||||
"min_version": "0.8.0",
|
"min_version": "0.8.0"
|
||||||
"max_version": "0.8.10"
|
|
||||||
},
|
},
|
||||||
"homepage_url": "https://github.com/MaiM-with-u/maibot",
|
"homepage_url": "https://github.com/MaiM-with-u/maibot",
|
||||||
"repository_url": "https://github.com/MaiM-with-u/maibot",
|
"repository_url": "https://github.com/MaiM-with-u/maibot",
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
},
|
},
|
||||||
"license": "GPL-v3.0-or-later",
|
"license": "GPL-v3.0-or-later",
|
||||||
"host_application": {
|
"host_application": {
|
||||||
"min_version": "0.8.0",
|
"min_version": "0.8.0"
|
||||||
"max_version": "0.8.10"
|
|
||||||
},
|
},
|
||||||
"keywords": ["vtb", "vtuber", "emotion", "expression", "virtual", "streamer"],
|
"keywords": ["vtb", "vtuber", "emotion", "expression", "virtual", "streamer"],
|
||||||
"categories": ["Entertainment", "Virtual Assistant", "Emotion"],
|
"categories": ["Entertainment", "Virtual Assistant", "Emotion"],
|
||||||
|
|||||||
Reference in New Issue
Block a user