From cb8d9ac71b4d31007c126ec9a5ee47412c159237 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:49:29 +0300 Subject: [PATCH] Unset SD gen timeout --- src/stable-diffusion.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stable-diffusion.js b/src/stable-diffusion.js index 438dfd588..9f892abb7 100644 --- a/src/stable-diffusion.js +++ b/src/stable-diffusion.js @@ -165,6 +165,7 @@ function registerEndpoints(app, jsonParser) { headers: { 'Authorization': getBasicAuthHeader(request.body.auth), }, + timeout: 0, }); const data = await result.json(); return data; @@ -184,6 +185,7 @@ function registerEndpoints(app, jsonParser) { 'Content-Type': 'application/json', 'Authorization': getBasicAuthHeader(request.body.auth), }, + timeout: 0, }); if (!result.ok) { @@ -227,6 +229,7 @@ function registerEndpoints(app, jsonParser) { 'Content-Type': 'application/json', 'Authorization': getBasicAuthHeader(request.body.auth), }, + timeout: 0, }); if (!result.ok) {