cleanup and fix ci

This commit is contained in:
2026-01-10 21:52:11 -05:00
parent 1059eced53
commit c48188792d
5 changed files with 27 additions and 18 deletions

View File

@@ -167,6 +167,9 @@ async function waitForImage(promptId, timeout = 900000) {
while (Date.now() - start < timeout) {
const res = await fetch(`${COMFYUI_URL}/history`);
if (!res.ok) {
throw new Error(`ComfyUI history request failed: ${res.status} ${res.statusText}`);
}
const data = await res.json();
const historyEntry = data[promptId];
@@ -206,7 +209,7 @@ async function generateImageViaComfyUI(prompt, filename) {
});
if (!res.ok) {
throw new Error(`ComfyUI error: ${res.statusText}`);
throw new Error(`ComfyUI error: ${res.status} ${res.statusText}`);
}
const { prompt_id } = await res.json();