mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix ooba streaming server crash
This commit is contained in:
@ -417,7 +417,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
for await (const text of readWebsocket()) {
|
for await (const text of readWebsocket()) {
|
||||||
if (text == null) {
|
if (text == null || typeof text !== 'string') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user