pull/1215/head
Windpicker-owo 2025-08-23 23:46:53 +08:00
commit dfd87ed280
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ if results.all_continue_process():
# 获取失败的处理器
failed_handlers = results.get_failed_handlers()
for handler in failed.handlers:
for handler in failed_handlers:
print(f"处理器 {handler.handler_name} 失败: {handler.message}")
# 获取停止处理的处理器

View File

@ -209,7 +209,7 @@ class DefaultReplyer:
if not from_plugin:
result = await event_manager.trigger_event("post_llm",prompt=prompt,llm_response=llm_response,stream_id=stream_id)
if not result.all_continue_process():
raise UserWarning(f"插件{result.get_summary().get("stopped_handlers","")}于请求前中断了内容生成")
raise UserWarning(f"插件{result.get_summary().get('stopped_handlers', '')}于请求前中断了内容生成")
# 4. 调用 LLM 生成回复
content = None

View File

@ -177,7 +177,7 @@ class EventManager:
"""
return self._event_handlers.get(handler_name)
def get_all_event_handlers(self) -> Dict[str, Type[BaseEventHandler]]:
def get_all_event_handlers(self) -> Dict[str, BaseEventHandler]:
"""获取所有已注册的事件处理器
Returns: