From 18f2f0446d3a006d6d7c6946c607d02ef87ad67f Mon Sep 17 00:00:00 2001 From: wauputr4 <103489788+wauputr4@users.noreply.github.com> Date: Thu, 23 Apr 2026 20:12:52 +0700 Subject: [PATCH] Update open-sse/handlers/imageGeneration.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- open-sse/handlers/imageGeneration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-sse/handlers/imageGeneration.ts b/open-sse/handlers/imageGeneration.ts index e41f967dd7..9836724066 100644 --- a/open-sse/handlers/imageGeneration.ts +++ b/open-sse/handlers/imageGeneration.ts @@ -298,7 +298,7 @@ async function handleKieImageGeneration({ log, }) { const startTime = Date.now(); - const token = credentials.apiKey || credentials.accessToken; + const token = credentials?.apiKey || credentials?.accessToken; const timeoutMs = normalizePositiveNumber(body.timeout_ms, 180000); const pollIntervalMs = normalizePositiveNumber(body.poll_interval_ms, 2500); const payload: Record = {