Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Update open-sse/handlers/videoGeneration.ts

wauputr4550d15b49ed8
diff --git a/open-sse/handlers/videoGeneration.ts b/open-sse/handlers/videoGeneration.ts
index 84b69d4111..f09b7f7274 100644
--- a/open-sse/handlers/videoGeneration.ts
+++ b/open-sse/handlers/videoGeneration.ts
@@ -372,7 +372,7 @@ async function handleKieVideoGeneration({
};
}
- if (state === "fail") {
+ if (state === "fail" || state === "failed" || state === "error" || state.includes("fail") || state.includes("error")) {
const errorMessage =
recordData?.data?.failMsg || recordData?.msg || "KIE video task failed";
return { success: false, status: 502, error: errorMessage };