diff --git a/src/art/genAI/stableDiffusion.js b/src/art/genAI/stableDiffusion.js index 6e747e87d2f289233553b04e18c5152dc5388f82..e73f5f91b665e951a7a0faa7ad3676633ad13d83 100644 --- a/src/art/genAI/stableDiffusion.js +++ b/src/art/genAI/stableDiffusion.js @@ -292,12 +292,13 @@ App.Art.GenAI.StableDiffusionClient = class { return settings; } - /** + /** Note the long timeout; if SD is actively rendering it'll sometimes stop responding to API queries. + * Do not block on API calls. * @param {string} relativeUrl * @returns {Promise<Response>} */ async fetchAPIQuery(relativeUrl) { - return fetchWithTimeout(`${V.aiApiUrl}${relativeUrl}`, 1000, {method: "GET"}); + return fetchWithTimeout(`${V.aiApiUrl}${relativeUrl}`, 30000, {method: "GET"}); } /**