generated from nhcarrigan/template
fix: log it
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user