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