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