diff --git a/bot/src/modules/ai.ts b/bot/src/modules/ai.ts index 72bde37..f8766fc 100644 --- a/bot/src/modules/ai.ts +++ b/bot/src/modules/ai.ts @@ -11,8 +11,8 @@ import { PrismaClient } from "@prisma/client"; 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"; +import type { Client, Message, SendableChannels } from "discord.js"; const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_KEY ?? "", @@ -63,7 +63,7 @@ export const ai = async( : null; let parsedPrompt = prompt; if (queryString !== null) { - await logger.log("debug": `AI module: Query string: ${queryString}`); + await logger.log("debug", `AI module: Query string: ${queryString}`); const database = new PrismaClient(); const data = await database.$runCommandRaw({ aggregate: "Documentation",