mirror of https://github.com/Mai-with-u/MaiBot.git
Merge branch 'dev' of https://github.com/Windpicker-owo/MaiBot into dev
commit
dfd87ed280
|
|
@ -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}")
|
||||
|
||||
# 获取停止处理的处理器
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue