修复post_llm,以及event使用说明

This commit is contained in:
Windpicker-owo
2025-08-25 19:12:26 +08:00
parent 084a425a4f
commit 272f48299a
2 changed files with 369 additions and 1 deletions

View File

@@ -369,7 +369,7 @@ class DefaultReplyer:
from src.plugin_system.core.event_manager import event_manager
if not from_plugin:
result = await event_manager.trigger_event(EventType.POST_LLM,prompt=prompt,llm_response=llm_response,stream_id=stream_id)
result = await event_manager.trigger_event(EventType.POST_LLM,prompt=prompt,stream_id=stream_id)
if not result.all_continue_process():
raise UserWarning(f"插件{result.get_summary().get('stopped_handlers', '')}于请求前中断了内容生成")