mirror of https://github.com/Mai-with-u/MaiBot.git
fix
parent
dfd87ed280
commit
c0a5b49d84
|
|
@ -440,10 +440,7 @@ class HeartFChatting:
|
|||
)
|
||||
|
||||
# 触发 ON_PLAN 事件
|
||||
result = await event_manager.trigger_event("on_plan", {
|
||||
"prompt": prompt_info[0],
|
||||
"stream_id": self.chat_stream.stream_id
|
||||
})
|
||||
result = await event_manager.trigger_event("on_plan", prompt=prompt_info[0],stream_id=self.chat_stream.stream_id)
|
||||
if result and not result.all_continue_process():
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ class EventManager:
|
|||
default_events = [
|
||||
"on_start",
|
||||
"on_stop",
|
||||
"on_plan"
|
||||
"on_message",
|
||||
"post_llm",
|
||||
"after_llm",
|
||||
|
|
|
|||
Loading…
Reference in New Issue