mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix: restore chat.message plugin hook (#2619)
This commit is contained in:
parent
51c647ca89
commit
52fb571739
@ -716,6 +716,15 @@ export namespace SessionPrompt {
|
||||
}),
|
||||
).then((x) => x.flat())
|
||||
|
||||
await Plugin.trigger(
|
||||
"chat.message",
|
||||
{},
|
||||
{
|
||||
message: info,
|
||||
parts,
|
||||
},
|
||||
)
|
||||
|
||||
await Session.updateMessage(info)
|
||||
for (const part of parts) {
|
||||
await Session.updatePart(part)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user