From 831bb692d915783fcc01d69bba450b7b68a2cf98 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 2 Jun 2026 21:44:42 +0700 Subject: [PATCH] chore: no staged changes --- services/discord-gateway/src/app/bootstrap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/discord-gateway/src/app/bootstrap.ts b/services/discord-gateway/src/app/bootstrap.ts index bddf3d0..0b3e6d0 100644 --- a/services/discord-gateway/src/app/bootstrap.ts +++ b/services/discord-gateway/src/app/bootstrap.ts @@ -23,9 +23,9 @@ import { createGracefulShutdown } from "./shutdown.js"; const logger = createChildLogger("discord-gateway"); export async function initializeDiscordGateway() { - if (!config.AI_LLM_API_KEY) { + if (config.AI_ANALYSIS_ENABLED && !config.AI_LLM_API_KEY) { logger.error( - "AI_LLM_API_KEY is missing from environment. Force closing application as AI environment is required.", + "AI_ANALYSIS_ENABLED=true but AI_LLM_API_KEY is missing from environment. Force closing application because AI analysis cannot run without credentials.", ); process.exit(1); }