fix: log it

This commit is contained in:
2025-08-07 14:25:15 -07:00
parent 06f260faf5
commit e300aa890f
+2
View File
@@ -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",