mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
11 lines
221 B
JavaScript
11 lines
221 B
JavaScript
module.exports = (req, res, next) => {
|
|
let { stopStream } = req.body;
|
|
if (stopStream) {
|
|
console.log('stopStream');
|
|
res.write('event: stop\ndata:\n\n');
|
|
res.end();
|
|
return;
|
|
} else {
|
|
next();
|
|
}
|
|
};
|