- Issue created by @g.rocchini
- First commit to issue fork.
- Merge request !464Resolve #3506391 "Alter pregenerateresponseevent response" → (Merged) created by marcus_johansson
- 🇩🇪Germany marcus_johansson
If you put something like this inside the PreGenerateResponseEvent event subscriber it should work:
// Logic to know it is suppose to trigger. $event->setForcedOutputObject(new ChatOutput( new ChatMessage('user', 'You have been banned!'), [], [], ));
Note that the raw output you can't really replicate, so this will first and forthmost work for any site with either a known provider or any solution that uses normalization (which should be just about any).
- 🇩🇪Germany marcus_johansson
Added this + some lines about what is possible in the PreGenerateResponseEvent in the actual documentation.
- Status changed to Fixed
5 days ago 6:28pm 9 July 2025 -
marcus_johansson →
committed 95239e94 on 1.2.x
Resolve #3506391 "Alter pregenerateresponseevent response"
-
marcus_johansson →
committed 95239e94 on 1.2.x