feat: pass sessionID to chat.system.transform (#7718)

This commit is contained in:
Spoon 2026-01-11 01:21:51 +01:00 • committed by GitHub
commit 4752c83155
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ export namespace LLM {
const header = system[0]
const original = clone(system)
await Plugin.trigger("experimental.chat.system.transform", {}, { system })
await Plugin.trigger("experimental.chat.system.transform", { sessionID: input.sessionID }, { system })
if (system.length === 0) {
system.push(...original)
}