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 { prompt } from "../config/prompt.js";
|
||||||
import { calculateCost } from "../utils/calculateCost.js";
|
import { calculateCost } from "../utils/calculateCost.js";
|
||||||
import { errorHandler } from "../utils/errorHandler.js";
|
import { errorHandler } from "../utils/errorHandler.js";
|
||||||
import type { Client, Message, SendableChannels } from "discord.js";
|
|
||||||
import { logger } from "../utils/logger.js";
|
import { logger } from "../utils/logger.js";
|
||||||
|
import type { Client, Message, SendableChannels } from "discord.js";
|
||||||
|
|
||||||
const anthropic = new Anthropic({
|
const anthropic = new Anthropic({
|
||||||
apiKey: process.env.ANTHROPIC_KEY ?? "",
|
apiKey: process.env.ANTHROPIC_KEY ?? "",
|
||||||
@@ -63,7 +63,7 @@ export const ai = async(
|
|||||||
: null;
|
: null;
|
||||||
let parsedPrompt = prompt;
|
let parsedPrompt = prompt;
|
||||||
if (queryString !== null) {
|
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 database = new PrismaClient();
|
||||||
const data = await database.$runCommandRaw({
|
const data = await database.$runCommandRaw({
|
||||||
aggregate: "Documentation",
|
aggregate: "Documentation",
|
||||||
|
|||||||
Reference in New Issue
Block a user