mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 19:30:15 +01:00
fix: stops stream upon conversation
This commit is contained in:
parent
79f050bac7
commit
23de688bf3
6 changed files with 218 additions and 120 deletions
|
|
@ -68,5 +68,11 @@ export default function handleSubmit({
|
|||
errorHandler(e);
|
||||
};
|
||||
|
||||
events.addEventListener('stop', () => {
|
||||
// Close the SSE stream
|
||||
console.log('stop event received');
|
||||
events.close();
|
||||
});
|
||||
|
||||
events.stream();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue