修正at插件from_plugin=False
This commit is contained in:
@@ -80,19 +80,12 @@ class AtAction(BaseAction):
|
||||
reply_to = f"{user_name}:{at_message}"
|
||||
extra_info = f"你需要艾特用户 {user_name} 并回复他们说: {at_message}"
|
||||
|
||||
from src.plugin_system.core.event_manager import event_manager
|
||||
from src.plugin_system import EventType
|
||||
# 触发post_llm
|
||||
result = await event_manager.trigger_event(EventType.POST_LLM, permission_group="SYSTEM")
|
||||
if not result.all_continue_process():
|
||||
return False, f"被组件{result.get_summary().get("stopped_handlers","")}打断"
|
||||
|
||||
# 使用回复器生成回复
|
||||
success, llm_response, prompt = await replyer.generate_reply_with_context(
|
||||
reply_to=reply_to,
|
||||
extra_info=extra_info,
|
||||
enable_tool=False, # 艾特回复通常不需要工具调用
|
||||
from_plugin=True # 标识来自插件
|
||||
from_plugin=False
|
||||
)
|
||||
|
||||
if success and llm_response:
|
||||
|
||||
Reference in New Issue
Block a user