fix: restore chat.message plugin hook (#2619)
parent
51c647ca89
commit
52fb571739
|
|
@ -716,6 +716,15 @@ export namespace SessionPrompt {
|
||||||
}),
|
}),
|
||||||
).then((x) => x.flat())
|
).then((x) => x.flat())
|
||||||
|
|
||||||
|
await Plugin.trigger(
|
||||||
|
"chat.message",
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
message: info,
|
||||||
|
parts,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
await Session.updateMessage(info)
|
await Session.updateMessage(info)
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
await Session.updatePart(part)
|
await Session.updatePart(part)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue