From e300aa890fae06e50e99de50352ced0677fbddac Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 7 Aug 2025 14:25:15 -0700 Subject: [PATCH] fix: log it --- bot/src/modules/ai.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/src/modules/ai.ts b/bot/src/modules/ai.ts index 3dab592..72bde37 100644 --- a/bot/src/modules/ai.ts +++ b/bot/src/modules/ai.ts @@ -12,6 +12,7 @@ import { prompt } from "../config/prompt.js"; import { calculateCost } from "../utils/calculateCost.js"; import { errorHandler } from "../utils/errorHandler.js"; import type { Client, Message, SendableChannels } from "discord.js"; +import { logger } from "../utils/logger.js"; const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_KEY ?? "", @@ -62,6 +63,7 @@ export const ai = async( : null; let parsedPrompt = prompt; if (queryString !== null) { + await logger.log("debug": `AI module: Query string: ${queryString}`); const database = new PrismaClient(); const data = await database.$runCommandRaw({ aggregate: "Documentation",